Miscellaneous (iii)-the type java.lang.Object cannot be resolved It's indirectly referenced ...

Source: Internet
Author: User

the  type java.lang.Object cannot be resolved. It  is indirectly referenced from required. class Files

This problem occurs when you reference different version number Jdkproject in Eclipse. Because of the JDK or JRE that has multiple version numbers applied to your development environment. Eclipse will choose the appropriate JRE by default in accordance with the initial development environment. If you have jdk1.4 development environment project on Eclipse, the problem arises when you introduce project with the high version number jdk1.6 development.


problem-solving scenarios such as the following :

(1)

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 number under the alternate JRE JRE--and Finish---> Ok

The above problems can be solved.


(2) If it still does not work. Then change the JDK to 1.6 or 1.7.

Miscellaneous (iii)-the type java.lang.Object cannot be resolved It's indirectly referenced ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.