There is no mistake in the Java program, but the project shows a red fork solution

Source: Internet
Author: User

Error message:

Reported description Resource Path location Type Java compiler level does not match the version of the installed Java project FAC ET. This problem occurs because the JDK build version of Eclipse/myeclipse is inconsistent with the problematic JDK compilation version of the project!

Tools/Materials

    • Eclipse/myeclipse

Baidu Experience: jingyan.baidu.com

Method/Step
    1. 1

      Set up the JDK first, need to determine the project, Eclipse/myeclipse, the system is using the same version of the JDK, my system installed JDK is 1.7, so I put eclipse jdk into 1.7

      Steps to read
    2. 2

      Enter Windows---proferences---java--compiler settings compiled files using the format is 1.7 version (set to how many lines, as long as compatible, and with your project compiled version always can, I here unified set to 1.7)

      Steps to read
    3. 3

      Enter Project--properties---java Compiler to set the project compilation version to 1.7

      Steps to read
    4. 4

      Enter Project--properties---myeclipse---project facets set Java file version to 1.7

      Steps to read
    5. 5

      Here, complete the configuration

There is no mistake in the Java program, but the project shows a red fork solution

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.