Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse has no Java facet version 1.8

I am using eclipse Kepler (enterprise edition), Java 8, and M2Eclipse and trying to make a web application. I have already gone to help -> eclipse marketplace and installed these two patches:

  • Java 8 support for Eclipse Kepler SR2
  • Java 8 support for m2e for Eclipse Kepler SR2

Those patches cleared up a lot of my problems, but one remains. I did a maven -> update from within eclipse, it went and updated all my projects except the only web app in my workspace. It gives me a pop up message that says "Version 1.8 of project facet java does not exist"

I opened my project properties and clicked Project Facets. Sure enough, the java facet maximum version is 1.7. So I am wondering why I don't have the same problem on my other projects. I viewed the properties on my other projects and discovered that none of them are using Project Facets at all. I think this might be because I made all of the previous projects using a standard edition of eclipse, not an enterprise edition.

So I guess I have a couple questions. How can I get eclipse to recognize the java facet 1.8? Is there a way I can have my web app not use Project Facets? Should I add Project Facets to my other projects?

like image 1000
msknapp Avatar asked Jun 19 '14 03:06

msknapp


People also ask

How do I get project facets in eclipse?

Project FacetsRight click on the project properties. Select “Project Facets“, and click “convert to faceted form…” Check “Dynamic Web Module” and “Java“, and specify the value. By default, Eclipse will generate all “web” related files (like WEB-INF, web.

What is faceted form in eclipse?

Faceted Project Framework is a mature component of Eclipse Web Tools Platform (WTP) that facilitates treating Eclipse projects as composed of units of functionality (called facets) that can be easily added or removed by users.

What is facets in Java?

Facets define characteristics and requirements for Java™ EE projects and are used as part of the runtime configuration. When you add a facet to a project, that project is configured to perform a certain task, fulfill certain requirements, or have certain characteristics.


1 Answers

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

like image 75
Obada Kadri Avatar answered Sep 26 '22 10:09

Obada Kadri