Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Java by (3.9k points)

I am getting the following error after importing a project in Eclipse:

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

However, I have set the path as C:\Program Files\Java\jdk1.6.0_41 in Eclipse Kepler, through Window » Preferences » Java » Installed JREs

1 Answer

0 votes
by (46k points)

his is an irritating Eclipse Bug which appears to bite now and then. See for a possible solution, unless try the following;

  • Close the project and resume it.
  • Clean the project (It will restore the buildpath hence reconfiguring with the JDK libraries)


  • Delete and Re-import the project and if required do the above steps again.

The better cure is to try NetBeans rather of Eclipse :-)

Browse Categories