Eclipse's use of a

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 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.

Eclipse's use of a

Related Article

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.