本文介绍了为什么我的java编译器级别不符合我安装的项目方面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse 3.7中制作了一个简单的Java AppEngine应用程序,名为Guestbook,我试图运行它。但是,我遇到一个缺少快速修复的错误:

 描述资源路径位置类型
Java编译器级别与安装的Java项目构面的版本不匹配。
留言簿未知方面的项目问题(Java版本不匹配)

我尝试导航到项目|属性来更改我的项目方面。但是,我找不到处理facet的设置。





安装的Java项目方面是什么意思,我该如何解决?

解决方案

您可以通过右键单击项目 - > properties-> Project Facets



在这里,您可以看到一个示例Web应用程序的方面:



我认为您的Java facet与已安装的不一致。我怀疑facet是1.5版本。请检查一下。



加载项:打开导航器视图,展开.settings文件夹,打开文件org.eclipse.wst.common.project.facet.core.xml并手动将Java版本设置为1.6。


I made a simple Java Google AppEngine application called Guestbook in Eclipse 3.7 and am trying to run it. However, I am encountering an error that lacks a quick fix:

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

I tried navigating to Project | Properties to change my project facet. However, I could not find a setting that dealt with "facet."

What does "installed Java project facet" mean, and how do I fix this?

解决方案

You can see your facets via Right click on your project->properties->Project Facets,

Here you can see my facets for an example web application:

I think your Java facet does not match with the installed one. I'm suspicious that facet is at version 1.5. Please check it.

Add-on:Open the Navigator view, expand the .settings folder, open the file org.eclipse.wst.common.project.facet.core.xml and manually set the Java version to 1.6.

这篇关于为什么我的java编译器级别不符合我安装的项目方面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 08:49