Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The project was not built since its build path is incomplete

Every time I try to import a project downloaded from googlecode into Eclipse but I get some errors:

The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project

Unable to resolve target 'android-10' (this changes from 1 to 15)

I've already checked the other answers on the site but no solution worked.

In

Properties -> Java Build Path -> Libraries

there's 1 item:

Unable to get system libraries for the project

like image 841
Angelo Tricarico Avatar asked Feb 18 '12 13:02

Angelo Tricarico


People also ask

How do I fix eclipse build path?

Procedure. In Eclipse select the web project and right-click Build Path > Configure Build Path. This will display the Java Build Path window. Add the CICS and Liberty libraries, click Add Library > CICS Liberty libraries > Next > Finish.


2 Answers

Right click on project -> Properties -> Java Build Path (From Left List) -> Libraries (Tab) -> Add Library (Button on right) -> JRE System Library -> Next -> Workspace default JRE -> Finish

This should solve at least one of your errors. Any others might require you to add further libraries.

Hope this helps.

like image 75
Steve Avatar answered Sep 21 '22 15:09

Steve


Close eclipse and re-open worked for me. You may have to do this two or three times. Each time give it a minute for the auto build startup process (check bottom right hand corner) to complete, as these errors often disappear at this time.

Or try to clean the affected projects.

'Turn it off and on again'

like image 40
Hevski Avatar answered Sep 22 '22 15:09

Hevski