• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
John Vorwald
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
John Vorwald
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic