如何更改我的“已安装的项目构面”的Java版本在Eclipse中? [英] How do I change the Java version of my "installed project facet" in Eclipse?

查看:937
本文介绍了如何更改我的“已安装的项目构面”的Java版本在Eclipse中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装Eclipse 3.7和Eclipse的Google插件,因为我想教自己如何使用Google App Engine。

I just installed Eclipse 3.7 and the Google Plugin for Eclipse because I want to teach myself how to use Google App Engine.

当我创建一个新的Web应用程序运行,我有一个错误,指出我的JRE版本(1.4)中不允许注释。因此,我将我的JRE设置为1.6,我的编译器合规级别为1.6。

When I create a new web application and run, I got an error that noted that annotations were not allowed in my JRE version (1.4). Hence, I set my JRE to 1.6 and my compiler compliance level to 1.6.

但是,我现在得到这个新的错误。

However, I now get this new error.

Description Resource    Path    Location    Type
Java compiler level does not match the version of the installed Java project facet.
Myprojectname       Unknown Faceted Project Problem (Java Version Mismatch)

如何更改版本已安装的Java项目方面?

How do I change "the version of the installed Java project facet"?

在项目属性菜单左侧没有名为项目方面的项目。

There is no item called "Project Facet" to the left of my project's properties menu.

推荐答案

如果您获得该验证消息,您应该可以在项目属性下找到项目构面。您应该会看到像这样的屏幕,您可以在其中更改Java facet版本:

If you are getting that validation message, you should be able to find "Project Facets" under your project's properties. You should see a screen like this one, where you will be able to change Java facet version:

如果您没有看到此页面,那么您创建的项目可能会以某种方式损坏。你是怎么创建的?您是否使用Google Plugin for Eclipse提供的向导?如果是这样,您将需要向Google提交错误报告,因为它们没有创建有效的项目。

If you are not seeing this page, then the project you created is likely corrupted somehow. How did you create it? Did you use a wizard provided by Google Plugin for Eclipse? If so, you will need to file a bug report with Google as they are not creating a valid project.

无论如何,您应该能够解决这个问题通过右键单击问题视图中的问题并选择快速修复,您将引导您调整Java facet和java合规性设置。

Regardless of the above, you should be able to resolve this problem by right clicking on the problem in the problems view and selecting "quick fix", where you will be guided in aligning your java facet and java compliance settings.

这篇关于如何更改我的“已安装的项目构面”的Java版本在Eclipse中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆