Eclipse没有Java facet 1.8版 [英] Eclipse has no Java facet version 1.8
问题描述
我正在使用eclipse Kepler(企业版),Java 8和M2Eclipse并尝试制作Web应用程序。我已经去帮忙了 - > eclipse marketplace并安装了这两个补丁:
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支持Eclipse Kepler SR2
- Java 8支持m2e for Eclipse Kepler SR2
这些补丁解决了我的很多问题,但是一个遗迹。我在eclipse中做了一个maven - > update,它除了工作区中唯一的web应用程序外,还更新了我的所有项目。它给我一个弹出消息,说项目方面java版本1.8不存在
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"
我打开了我的项目属性并单击了Project Facets。果然,java facet最大版本是1.7。所以我想知道为什么我的其他项目没有同样的问题。我查看了其他项目中的属性,发现它们都没有使用Project Facets。我想这可能是因为我使用标准版的eclipse而不是企业版制作了所有以前的项目。
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.
所以我想我有几个问题。我如何让eclipse识别java facet 1.8?有没有办法让我的网络应用程序不使用Project Facets?我应该将Project Facets添加到我的其他项目中吗?
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?
推荐答案
刚遇到此问题。我的问题是tomcat服务器在JRE的错误位置查找。要解决此问题:
Just ran into this issue. My problem was with the tomcat server looking in the wrong place for the JRE. To fix that:
- 在服务器选项卡中双击服务器
- 打开运行时环境
- 更改JRE选择器。
希望这可以节省时间
这篇关于Eclipse没有Java facet 1.8版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!