eclipse import project version error solution Project facet Java version 17 is not supported.

Project facet Java version 17 is not supported.

When using eclipse to import a project, it is easy to report an error because eclipse does not support it, resulting in the project not being added to the server.

The native eclipse does not support the jdk17 version. The solution is to modify the version of the imported project to the default supported version of the native eclipse.

The following example uses my native eclipse default version as 1.8.

method: 

1. There is a .settings folder in the directory of my project jstl-demo, and there is an org.eclipse.wst.common.project.facet.core.xml file in this folder.

2. Modify the org.eclipse.wst.common.project.facet.core.xml file,

Find <installed facet="java" version="17"/>,

Modify it to the default supported version of native eclipse. In the following example, my native eclipse default version is 1.8.

<installed facet="java" version="1.8"/>。

3. Refresh it. If the error is still reported, you need to modify it manually in eclipse.

4. Find Libraries and click Properties.

5. Modify to the default supported version of native eclipse. In the following example, my native eclipse default version is 1.8, and then click Apply.

6. The solution is completed, no errors are reported, and the project can be added to the server normally.

Guess you like

Origin blog.csdn.net/DaMingtongxue/article/details/134315518