Monday, May 24, 2010

Eclipse build problem: The type java.lang.Object cannot be resolved. It is indirectly referenced from the required .class files

http://forums.sun.com/thread.jspa?threadID=688073: says


 nepaliSun
Posts:1
Registered: 1/7/06
Re: The type java.lang.Object cannot be resolved   
Jan 7, 2006 3:38 PM (reply 6 of 34)  (In reply to original post ) 
Click to email this message


 
In Eclipse, the cause of this problem is that You somehow deleted the SYSTEM JRE LIBRARY associated with your project.

Simple fix in Eclipse:
-Right Click Project you are working on from Package Explorer
-Go to Properties
-Go to Java Build Path from the right tree structure
-Go to Libraries Tab
-Choose Add Library Button
-Select JRE System Library
-Hit Next, the Radio button will prompt the Workspace default JRE, and let it be that way
-Hit Finish

Things should work now
Cheers,
-Ram S. Khanal


It worked for me.

No comments:

Post a Comment