Posts

Showing posts with the label Eclipse build errors

Eclipse build errors - java.lang.object cannot be resolved

Eclipse build errors - java.lang.object cannot be resolved The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files 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 Solution: The work around is to remove the JRE System Library from the project and then add it back again.  Here are the steps: Go to properties of project with the build error (right click > Properties) View the "Libraries" tab in the "Build Path" section Find the "JRE System Library" in the list (if this is missing then this error message is not an eclipse bug but a mis-configured project) Remove  the "JRE System Library" Hit "Add Library ...", Select "JRE System Library" and add the appropriate JRE for the project (eg. 'Workspace default JRE') Hit "Finish...