Project long time building while online


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.


Once I’ve faced the similar problem on a notebook with the same OS and this question and its answer helped me:


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


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 (in my case) was C:\Program Files\Java\jdk_YOUR_JDK_VERSION\jre\lib\security\

Sorry for my English.