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

解决方案有如下两种:
方案1. 在项目名称处点击鼠标右键-->属性,打开项目属性对话框,找到 MyEclipse-->Project Facets,将此处的 java 版本设置为与项目编译级别相同。
Java compiler level does not match the version of the installed Java project facet._第1张图片

方案2. 在“工程/.settings/”目录下找到名为 org.eclipse.wst.common.project.facet.core.xml 的文件,将该文件中 <installed facet="java" version="x.x"/> 处的 version 值修改为与项目编译级别相同,保存该文件,然后刷新工程即可。
Java compiler level does not match the version of the installed Java project facet._第2张图片

你可能感兴趣的:(compiler)