创建项目,报错:Java compiler level does not match the version of the installed Java project facet.

创建项目,报错:Java compiler level does not match the version of the installed Java project facet.
创建好WEB项目后,在Problems窗口会看到这个错误。
如果看不到这个窗口,请选择window–>Show View–>other.
创建项目,报错:Java compiler level does not match the version of the installed Java project facet.
然后点击OK即可。

出现这个问题的主要原因是:jdk使用的是1.7版本,创建web项目的选择J2EE 5或者6,版本不一致,这时候,在web项目上右键–>Properties–>Java Compiler.
创建项目,报错:Java compiler level does not match the version of the installed Java project facet.
这原来是1.6,修改成jdk版本,这选择1.7,发现还是会报Java compiler level does not match the version of the installed Java project facet.。这时请找到workspace下的项目,里面会有一个.settings的文件夹,里面有org.eclipse.wst.common.project.facet.core.xml文件。创建项目,报错:Java compiler level does not match the version of the installed Java project facet.
打开这个文件
创建项目,报错:Java compiler level does not match the version of the installed Java project facet.
将这个version="1.6"修改为1.7,然后到ide中刷新项目让项目自动编译,这个错误会消失。