Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error in build path

 
christine clarin
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am having this error in building one of my projects in eclipse:

"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"

how do i resolve this? i don't know why it can't recognize java.lang.Object since all the others do. thanks!
 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Eclipse's menu toolbar, click on "Project" then click on "Properties".
Your project properties window should appear. On the left-hand side tree, click on "Java Build Path". There will be 4 tabs on the right-hand side window. Click on "Libraries". In my configuration, java.lang.Object is in the rt.jar provided by the JRE. Make sure you have a jar that has java.lang.Object in your libraries tab and that the jar exists (just in case you upgraded your JRE or something like that).
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our "IDEs" forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic