Forums Login/signup

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

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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....
+Pie Number of slices to send: Send
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.

reply
reply
This thread has been viewed 9261 times.
Similar Threads
Eclipse indigo
Eclipse Windows 7 (64) bit Does'nt Start.
head first, very basic servlet
how to create servlet with eclipse IDE
Eclipse: troubles setting up the java 8 jdk and jre
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 30, 2025 11:27:07.