Java Project in Eclipse: the Type Java.Lang.Object Cannot Be Resolved. It Is Indirectly Referenced from Required .Class Files

Java project in Eclipse: The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

This is an annoying Eclipse Bug which seems to bite now and then. See http://dev-answers.blogspot.de/2009/06/eclipse-build-errors-javalangobject.html for a possible solution, otherwise try the following;

  • Close the project and reopen it.

  • Clean the project (It will rebuild the buildpath hence reconfiguring with the JDK libraries)

    OR

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

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

java.lang.Object cannot be resolved

  1. Right click on project
  2. Build path
  3. Configure build path
  4. Select the Libraries tab, you should see the Java 1.8 jre with an error
  5. Select the java 1.8 jre
  6. Click the Remove button
  7. Add Library
  8. Add JRE System Library > Next > workspace default > Finish

Eclipse error: indirectly referenced from required .class files?

It means: "A class that you use needs another class that is not on the classpath." You should make sure (as Harry Joy suggests) to add the required jar to the classpath.

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

In my case, I updated greendao-gradle-plugin 3.2.2 to 3.3.0,Then , It resolved magically.

My screenshot



Related Topics



Leave a reply



Submit