Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Repositories fail "Unable to read repository at"

Tags:

eclipse

I generally don't use Eclipse, so perhaps I'm doing something wrong, but I've spent several hours going over this and can't find a problem.

I needed a plugin for Eclipse (PigEditor or PigPen) and attempted to install it via repository, this failed with the error below. When it wouldn't install, I downloaded the .zip version, extracted the archive, found the folder containing features and plugins directory and tried installing it. This also failed. I also tried a PigPen .jar and it wasn't picked up at all when placing it into the plugins folder.

I noticed along the way that I received a bunch of error messages where it looked like Eclipse was trying to fetch dependencies. For example...

Error
Unable to read repository at http://download.eclipse.org/eclipse/updates/4.3.
java.io.IOException: http://download.eclipse.org/eclipse/updates/4.3 is not a valid repository location.

That -should- be a valid repository location, it's listed about halfway down here. This unable to read repository is the same error that I got when trying to install the previous plugin from repository.

I then went to the Preferences -> Available Software Sites and tried all of the default installed repositories. There were 2 checked (the one listed above, and http://download.eclipse.org/releases/kepler) and 2 unchecked (http://download.eclipse.org/egit/updates and http://www.eclipse.org/modeling/updates). I hit reload on any of those and receive the same error message as above.

I can access websites from the internal browser. I've also tried changing my Network Connections preference to "Direct".

Really all I care about is getting a working Pig plugin, so I'll accept that as an answer. I'm getting the feeling though that my failure to get any repositories is a symptom of a bigger problem (and I really want to know what's going on), so if you have troubleshooting steps I'm willing to try anything.

Sites I'm trying to get the Pig editor from: https://wiki.apache.org/pig/PigPen http://romainr.github.io/PigEditor/ https://github.com/romainr/PigEditor

like image 507
BeanBagKing Avatar asked Sep 23 '13 15:09

BeanBagKing


1 Answers

Solution :

Open up .exe eclipse file from command promtp followed by command -vmargs -Djava.net.preferIPv4Stack=true

or

changed in eclipse.init file.

like image 67
Fareed Mohammed Avatar answered Sep 29 '22 16:09

Fareed Mohammed