Today I was developing at work as usual at work, however I used the wifi connection because the cabled network was not working. My first problem for the day was that Eclipse could not connect to repositories when trying to install new software. All I got was ”permission denied” errors and…
org.eclipse.equinox.p2.core.ProvisionException Unable to read repository at http://download.eclipse.org/releases/indigo/content.xml
Solution: Add ”-Djava.net.preferIPv4Stack=true” to eclipse.ini
My second problem was that I got really strange errors from my local Resin Application Server. It could not connect to my local SQl-server.
Solution: Add ”-Djava.net.preferIPv4Stack=true” to Resin jvm start arguments
My conclusion is that because our wifi network uses IPv6 then Java uses that instead of IPv4 if not clearly stated. And the applications that I was using was not ”configured” for IPv6 usage.