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