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

时间:2023-03-09 19:20:34
转:Java compiler level does not match the version of the installed Java project facet

a.问题描述:eclipse加载新的项目后报一个错误,具体描述如下:

Description Resource PathLocation Type
Java compiler level does notmatch the version of the installed Java project facet.webattemp
Unknown FacetedProject Problem (Java Version Mismatch)

b.问题分析:

java版本不匹配:Facted Project 中的Java 版本设定与项目的Java 版本设定不一致。

c.问题解决:

在当前项目上点右键,属性--Project Facets中,配置编译版本与javacompiler的版本一致。

   1)、选中项目右键Project->Properties -> Java Compiler(type filter text输入compiler可快速定位),如下图所示:

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

2)、修改Project Facets的Java值,使之和Compiler compliance level相同:打开方式参考1,如下图:

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

  附:文章转自:http://www.xuebuyuan.com/793587.html