Fix Java compiler level does not match the version of the installed Java project facet. Issues

Source: Internet
Author: User

In fact, I've encountered Java compiler level does not match the version of the installed Java Project facet. The problem, because there was no control at the time, the Internet to find a solution After the study of a front end, and then come back to use MyEclipse to do web development, found that the problem, a moment of Mongolian circle, just very impressed, online search has an answer to the hard drive to find what files and then modify, I still do not like this, so re-solve the problem. First of all, my configuration:

Tomcat:7

Jdk:7

Using the compiler in MyEclipse is 1.7

First, set the compiler to JDK7 in MyEclipse:

Set in Windows---> Preferences---> JAVA---> Compiler:

Then match some of the required version settings in the version of the Java project facet.

  Note here that the projectFacetmust be "MyEclipse" from the right-click Popup window of the item to select "Preferences"!!! There is no "Project Facet" in the "Preferences" selected from the menu bar "Windows", remember!!

  

  

Then we can set the Java compiler version in the Java project facet to be the same as my JDK, where I set it to 1.7.

As set above, you can find that Java compiler level does does not match the version of the installed Java project facet This problem will not be there anymore.

The Java project facet is not very well understood, it might be some external modules imported, for example, Java in Project facet is a JDK for my tomcat, so I'm in the code compiler and Tomcat side of the JDK will not match, I don't know if that's true.

Fix Java compiler level does not match the version of the installed Java project facet. Issues

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.