Yougandhara
Yougandhara

Reputation: 329

Error in eclipse: “The project cannot be built until build path errors are resolved”

My eclipse project shows up but with a red exclamation mark and an error saying:

  1. Build path specifies execution envoirnment JRE-1.1. There are no compatible JREs installed in the workspace
  2. Unbound classpath container : 'JRE System Library [JRE -1.1]' in project Automation

I checked if all the libraries are present or not as mentioned in the error, and tried to import the missing jar into project but when I clicked on JRE System Library [JRE -1.1] to import it. its showing

"An error has occurred. See error log for more details. java.lang.NullPointerException"

Can somebody help me out with this?

Upvotes: 2

Views: 7176

Answers (1)

Shrikant Kakani
Shrikant Kakani

Reputation: 1561

I was getting the same NullPointerException in Eclipse that came with Android SDK, then I did the following (explaining in step by step process):

  1. Go to Help and click on Install New Softwares.
  2. A Install window will open, click on "All available sites' and then there will be a text box to search for the softwares you want to install, enter 'Eclipse' there.
  3. A lots of Eclipse related softwares will come up. Select Eclipse Platform, Eclipse Platform SDK and Eclipse SDK and then click Next...Next...(and all the Next)...Accept All the Agreements...Finish.
  4. In some time it will install all the softwares and you'll have to restart the eclipse and you'll be good to go.

This resolved my issue. Hope this helps you.

Upvotes: 4

Related Questions