Eclipse has no Java facet version 1.8

拟墨画扇 提交于 2019-12-04 07:42:41

Just ran into this issue. My problem was with the tomcat server looking in the wrong place for the JRE. To fix that:

  • Double click on the server in the servers tab
  • Open "Runtime Environment"
  • Change the JRE selector.

Hope this saves someones time

I am using 4.3.2 version of Eclipse Kepler SR2 and ran into the same issue when the java version was bumped up from 1.7 to 1.8 for our maven project.

I was getting the following error while trying to do Maven Update : An internal error occurred during: "Updating Maven Project". Version 1.8 of project facet java does not exist.

If you check the Java Project Facet Version (Right click on project -> Properties -> Search for Project Facets -> Java (Version)) .. it must be an older version.

Project Facet Screenshot

Solution :

Goto Eclipse Marketplace and install the following :

  1. Java 8 support for Eclipse Kepler SR2
  2. Java 8 Facet for Web Tools for Eclipse Kepler SR2

Now, change the Java Project Facet Version to 1.8

Right click on project -> Properties -> Search for Project Facets -> Java (Version)

Now, you should be able to successfully take a maven update.

To fix this in eclipse, go to "Help" --> "Market Place" --> Search java 8 kepler. Then install all the 3 below plugins

install Java 8 support eclipse kepler sr2, install Java 8 Facets for web tools eclipse kepler sr2 install Java 8 support for m2e for Eclipse Kepler SR2 (if you are using maven)

Reference: http://www.eclipse.org/downloads/java8/

or You can try this

Select Project properties -->Project facets than at there change your java to the version of your workspace.

right click on your project > properties > java > compiler > compliance level > set it to 1.8

I too faced the same problem. I did like the below.

Right click on your project -> Build Path -> Configure Build Path.

On that, select Java Build Path, if there is any wrong mark indicated in the JRE System Library, select Library Tab and add JRE Library.

Once JRE Library added successfully, select the JRE System Library in Order and Export Tab and then click ok.

Then restart your eclipse.

Hope it may help you.

I had the same issue when our project upgraded from jdk 1.7 to 1.8 and server Tomcat to JBOSS. When I checked the Targeted Runtimes (Project-->right click-->properties-->Targeted Runtimes), it was pointing to Tomcat, and as I changed it to JBOSS the Project facets gave me java 1.8 version.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!