`

Java compiler level does not match the version of the installed Java project fac

    博客分类:
  • Java
阅读更多
出错:
Java compiler level does not match the version of the installed Java project facet

原因:Java Compiler和Project Facets版本不匹配
1 Eclipse中,右击项目的Properties属性,将Java Compiler和Project Facets设为一致即可。
2 在MyEclipse9中,Properties中没有Project Facets属性。只能在xml配置文件中修改:进入项目工作空间下面的setting文件夹下面,找到org.eclipse.wst.common.project.facet.core.xml文件,打开后内容为:

<?xml version="1.0" encoding="UTF-8"?> 
<faceted-project> 
<fixed facet="wst.jsdt.web"/> 
<installed facet="java" version="1.6"/> 
<installed facet="jst.web" version="2.5"/> 
<installed facet="wst.jsdt.web" version="1.0"/> 
</faceted-project>


设置facet="java"中的version和Java Compiler 的版本一致即可。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics