Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Eclipse IDE - Repository Errors

Tags:

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.

like image 718
user1136205 Avatar asked Jan 07 '12 17:01

user1136205


People also ask

How do I fix Eclipse errors?

I recommend going to your Problems view, selecting one of the errors, and hitting Ctrl-1 (quick fix). It should offer you the chance to fix all the errors of the selected type, in all files. You can also mouse over the error in the text editor and wait for a popup; it should say "fix 70 other errors of this type".

How do I check for errors in Eclipse?

From the main menu, select Window > Show view > Other. Then select General > Error Log. The error log is displayed, showing the following information for each error: The status of the error (for example, error or warning)

How do I change error warnings in Eclipse?

In eclipse if you right click on your Project in the Package Explorer, then go to properties -> Java Compiler -> Errors/Warnings. You can then manually change which compiler findings appear as warnings/errors/ignored etc...


1 Answers

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

like image 129
szkra Avatar answered Sep 18 '22 13:09

szkra