解决:Project facet Java version 1.7 is not supported.

When migrating an eclipse project, if you encounter

“Project facet Java version 1.7 is not supported.”

 

The jdk1.7 in the project is not supported. It means that the project is compiled by other versions of jdk, and it will report that the version is not supported when running in eclipse.

Solution :

Method 1 , select the project  Properties,  select  Project Facets, right-click and select  Java, Change Version           ....

Method 2 , there is a .settings folder in the project directory, and there is an org.eclipse.wst.common.project.facet.core.xml file in this folder, the content is as follows ;

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="jst.java"/>
<fixed facet="jst.web"/>
<installed facet="jst.web" version="2.4"/>
<installed facet="jst.java" version="6.0"/>
</faceted-project>

修改 <installed facet="jst.java" version="6.0"/>  <installed facet="jst.java" version="5.0"/> 即可。

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326654050&siteId=291194637