Project long time building while online


#1

Building project takes 2 seconds while I am disconnected to the Internet.
Building project takes 15 seconds while I am connected to the Internet.
Operating system: Windows 7 x64 SP1.
IDE: IntelliJ IDEA.
I connect to the Internet via USB-modem.
How to speed up building while I am online?

Sorry for my English, it’s not my native language.


#2

Once I’ve faced the similar problem on a notebook with the same OS and this question and its answer helped me: https://stackoverflow.com/questions/38942514/simple-java-program-100-times-slower-after-plugging-in-usb-hotspot


#3

Yes, I tried to do like in this answer. I reorded the provider list in %JAVA_HOME%\jre\lib\security\java.security file. But it didn’t help me.


#4

Everything works.
What I did?
I have the folder Java (C:\Program Files\Java). I have 2 folders (jdk, jre) in this folder . I changed the file as shown in the answer in the folder jdk. So the full path to the java.security (in my case) was C:\Program Files\Java\jdk_YOUR_JDK_VERSION\jre\lib\security\java.security.

Sorry for my English.