This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java in General and the fly likes error in build path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "error in build path" Watch "error in build path" New topic

error in build path

christine clarin
Ranch Hand

Joined: Feb 05, 2005
Posts: 106
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

Joined: Oct 29, 2001
Posts: 9168

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).

[How To Ask Questions On JavaRanch]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24195

Moving to our "IDEs" forum.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: error in build path
It's not a secret anymore!