0

it's the first time I working with Eclipse but when I try to import any source I've this problem 1-The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files 2-The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

I tried some solutions like add library..>JRE System . but useless with me!!

4
  • 2-(Edit)- 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 Commented Apr 11, 2015 at 4:07
  • Do you have JDK not just JRE on your computer? Commented Apr 11, 2015 at 4:07
  • 3
    stackoverflow.com/questions/18075343/… Commented Apr 11, 2015 at 4:07
  • I installed this file "jdk-8u40-windows-x64.exe" I have windows 8 64bit Commented Apr 11, 2015 at 4:39

1 Answer 1

0

I just solved this problem for myself as well. If the typical uninstalling and reinstalling the JRE System Library in the Java Build Path didn't work for you, then I suggest you try to install the Java JDK from here:

https://www.oracle.com/java/technologies/javase-downloads.html

Then, create a new workspace with default settings, and everything should be good. The reason why I had this problem is probably because I accidentally deleted something that was needed for Eclipse to function.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.