Project facet Java version 1.8 is not supported.

时间:2021-03-23 09:24:02

Project facet Java version 1.8 is not supported.

 

Eclipse中添加项目到Servers中时提示“Project facet Java version 1.8 is not supported.”

 

解决方案:方法一:选中项目,右键roperties》选择 Project Facets,右击选择 Java , Change Version 即可

方法二,在 项目的目录下有一个.settings的文件夹,该文件夹下有一个org.eclipse.wst.common.project.facet.core.xml文件,内容如下

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

修改 <installed facet="jst.java" version="1.8"/> 为 <installed facet="jst.java" version="1.7"/> 即可。

Project facet Java version 1.8 is not supported.