This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Please help, eclipse reinstalled, now can't find object class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Please help, eclipse reinstalled, now can Watch "Please help, eclipse reinstalled, now can New topic
Author

Please help, eclipse reinstalled, now can't find object class

John Vorwald
Ranch Hand

Joined: Sep 26, 2010
Posts: 139
I downloaded
se/jdk 7 64 bit version from http://download.java.net/jdk7u4/archive/b08/binaries/jdk-7u4-ea-bin-b08-windows-x64-20_jan_2012.exe
eclipse from http://mirrors.med.harvard.edu/eclipse//technology/epp/downloads/release/indigo/SR1/eclipse-java-indigo-SR1-win32-x86_64.zip

Installed se/jdk 64 bit version
Unzipped eclipse to C:/eclipse

Started eclipse, used import project, and I get the following 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"

and

"The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files"

I tried deleting the project, and importing again, and doing a workspace clean / rebuild.

What should I try next?
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
Ensure your Eclipse setup (Window, Preferences, Installed JREs) are pointing at your new install of the JDK. Then check the same for your project (right click on project, Properties, Java Compiler). Decide whether to Enable project specific setting (I suggest you use Workspace defaults previously configured unless you have a reason for this project to be unique.) In any case, the compiler should be pointing at your 1.7 JDK installation.

There's probably some baggage left over from your project's previous configuration that just needs to be modified to fit in your new environment. Shouldn't be a big deal. Let us know how it's going.


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
John Vorwald
Ranch Hand

Joined: Sep 26, 2010
Posts: 139
This link got past the missing object error

http://dev-answers.blogspot.com/2009/06/eclipse-build-errors-javalangobject.html

Next, had to re install junit libraries
Right click your project, Build path->Configure build path->Libraries->Add Library and select JUnit.

Now, it seems to be back to working status....
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
Glad you fixed it. It wasn't clear (to me) that your problem was with User Installed Libraries, but that's always a possibility when rebuilding a Workspace or importing an existing project into a new Workspace.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help, eclipse reinstalled, now can't find object class
 
Similar Threads
Unable to create a servlet in eclipse IDE?
Eclipse indigo
error in build path
eclipse
errors generated when running Ant build file in Eclipse