This problem occurs when you reference a different version of the JDK project in Eclipse. Due to multiple versions of JDK or JRE applied in your development environment. Eclipse chooses the corresponding JRE by default in the initial development environment. If you have jdk1.4-developed environmental engineering on Eclipse, the problem arises when you introduce a project that is developed in a high-version jdk1.6.
The problem-solving scenario is as follows:
Enter window\preferences\java\installed JREs
Press Add-Browse ...---> select JRE installation brutishness (my JRE path is D:\Program files\java\jre1.6.0_02)--->ok
Find your project right click on the Properties Option dialog box and select the Libraries tab on the right---> Click Add Library ...--->
Select JRE System Library ...---> Next---> select the corresponding version under the alternate JRE--and Finish---> Ok
The above problems can be solved.
Java appears in the type Java.lang.Object cannot be resolved. It is indirectly referenced ..... Workaround