The Type java. Lang. object cannot be resolved. It is indirectly reference

Source: Internet
Author: User

The following error occurs during project import. Check that the package import is normal.

Error!] The Type java. Lang. object cannot be resolved. It is indirectly referenced from required. class files

After searching for half a day, I found that it was a JDK problem. It turned out that the JDK package was not imported.

This may also be the reason: there are multiple JDK versions on the computer, so that problems may occur during myeclipse import. In general, you can use the JDK version that comes with myeclipse, I installed JDK 1.6.013, and it didn't work even if I re-imported it. Later I had to use the 1.6.0013 version of myeclipse.

Operation Procedure: Project-> properties-> JAVA bulid path: Delete the original JDK

Then, choose Java build path -----> libraries ----> Add libraries -----> JRE system library, select the JDK that comes with myeclipse, or select the appropriate package.

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.