Java Eclipse IDE – Repository Errors

eclipsejavarepository

I've been up for hours now, searching online for a solution. I can happily say, this has really pissed me off.

Upon opening 'Install New Software' I get "'Contacting Software Sites' has encountered a problem.

Some sites could now be found. See the error log for more detail."

Here's the error log:

Some sites could not be found. See the error log for more detail.
Unable to read repository at
http://download.eclipse.org/webtools/repository/indigo/content.xml.
Cannot assign requested address: JVM_Bind Unable to read repository at
http://download.eclipse.org/eclipse/updates/3.7/content.xml. Cannot
assign requested address: JVM_Bind Unable to read repository at
http://download.eclipse.org/mylyn/releases/indigo/content.xml. Cannot
assign requested address: JVM_Bind Unable to read repository at
http://download.eclipse.org/releases/indigo/content.xml. Cannot assign
requested address: JVM_Bind

Any ideas?
I want to install MercurialEclipse but it cannot find the repository, same for the defaults.

Best Answer

I had the same problem. And found solution on russia site. In file eclipse.ini under line -vmargs add this line:

-Djava.net.preferIPv4Stack=true

This will resolve problem.

Site with explanation