Search code examples
javaeclipseapache-commonsbuildpath

Broken Eclipse Build Path?


I think I screwed up my Eclipse installation while trying to install Apache Commons...

It is showing scary things like this, with little help on what to do...

enter image description here

enter image description here

The weird thing is I didn't really do anything apart from copying commons-lang3-3.1.jar into the folder with all the other jars I'm using...

What could I have possibly done and how can I possibly fix this? Please help


Solution

  • Looks like jre link to eclipse is broken.Right click on the project go to BuildPath -> Configure Build Path -> Libraries -> Add Library and Select JRE System Library . Now select the jre folder of your installed Java location and refresh the project. This should solve the issue. Alternatively you can create softlink to jre folder inside the eclipse folder in case of Linux OS.