Java compiler level does not match the version of

修改了编译级别之后出现如下错误提示:

Description ResourcePath LocationType

Java compiler level does not match the version of the installed Java project facet.SSJ UnknownFaceted Project Problem (Java Version Mismatch)

只要在项目的properties中选择project facet然后修改java的版本即可:

stackoverflow:

Why doesn‘t my java compiler level match my installed project facet?


up vote
22
down vote
favorite

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?

java 
eclipse 
google-app-engine


share
|
improve this question

edited Jul 8 ‘12 at 23:03

asked 
Jul 8 ‘12 at 22:48

David Faux

5,07743993

 
add a comment

3 Answers

active
oldest
votes


up vote
55
down vote
accepted

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.


share
|
improve this answer

edited Feb 19 at 12:00

answered 
Jul 8 ‘12 at 23:05

GokcenG

1,042723

   

Thank you, but I don‘t see Project Facets anywhere under Project Properties:i.imgur.com/9LqSf.png I am using Eclipse 3.7 on Mac Lion. Why might this be? – 
David Faux 
Jul 8 ‘12 at 23:09

   

I‘ve quickly looked for similar problems and I‘ve found some pages about it. You can check them:123 –  
GokcenG 
Jul 8 ‘12 at 23:15

8  

Did you read the 3rd one? 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. –  
GokcenG 
Jul 8 ‘12 at 23:20
1  

There have been a couple reports of this problem from people using Google App Engine tooling. It appears that they are installing Faceted Project Framework without its corresponding UI, leaving users in the bind. Please report this issue to Google. In the meantime, GokcenG‘s advice of editing the specified configuration manually should unblock you. –  
Konstantin Komissarchik 
Jul 8 ‘12 at 23:29
3  

Thank you! Solution number 3 did it. So, here‘s the fix I did again. 1) Switch to the Navigator Perspective (Window > Show Perspective > Navigator). 2) Open "org.eclipse.wst.common.project.facet.core.xml" under ".settings". 3) Changed my project facet from 1.4 to 1.6. This problem occupied me for the past 2 hours. Thanks a lot! I hope this thread helps others who encounter the same error. How does one report issues to Google by the way? –  
David Faux 
Jul 8 ‘12 at 23:31

时间: 2024-10-07 05:31:42

Java compiler level does not match the version of的相关文章

maven -- 问题解决(三)Java compiler level does not match the version of the installed Java project facet

问题: Java compiler level does not match the version of the installed Java project facet 解决方法如下: properties->Java Compiler,修改JDK版本,然后Apply

解决java compiler level does not match the version of the installed java project facet【转载】

原博文地址http://blog.csdn.net/chszs/article/details/8125828 Java compiler level does not match the version of the installed java project facet错误的解决 因工作的关系,Eclipse开发的Java项目拷来拷去,有时候会报一个很奇怪的错误.明明源码一模一样,为什么项目复制到另一台机器上,就会报"java compiler level does not match t

java compiler level does not match the version of the installed java project facet

Java compiler level does not match the version of the installed java project facet错误的解决 因工作的关系,Eclipse开发的Java项目拷来拷去,有时候会报一个很奇怪的错误.明明源码一模一样,为什么项目复制到另一台机器上,就会报“java compiler level does not match the version of the installed java project facet”错误呢? 如图所示

eclipse中,项目有红叉之-Java compiler level does not match the version of the installed Java project facet.

1.Java compiler level does not match the version of the installed Java project facet,意思是jdk版本和project facet版本不一致 2.解决Java Compiler和Project facets的版本需一致

(图解)Description Resource Path Location Type Java compiler level does not match the version of

Description Resource Path Location Type Java compiler level does not match the version of project 编译问题,需要三处的jdk版本要保持一致,才能编译通过. 1.在项目上右键properties->project Facets->修改右侧的version  保持一致 2.window->preferences->java->Compiler->设置右侧的Compiler co

Java compiler level does not match the version of the installed Java project facet错误的解决

Javacompiler level does not match the version of the installed Java project facet错误的解决 因工作的关系,Eclipse开发的Java项目拷来拷去,有时候会报一个很奇怪的错误.明明源码一模一样,为什么项目复制到另一台机器上,就会报"java compiler level does not match the version of the installed java project facet"错误呢?

Java compiler level does not match the version of the installed Java project facet问题处理

从SVN上下载应用后在Problems面板中提示以下错误信息: Java compiler level does not match the version of the installed Java project facet 我的Java编译级别和项目设置的编译级别不匹配导致的错误信息. 百度发现,可以通过修改项目目录下的"\.settings\org.eclipse.wst.common.project.facet.core.xml"文件解决该问题. 将org.eclipse.w

Java compiler level does not match the version of the installed Java project facet.问题

从同事那里拷贝过来的web项目,导入到eclipse中,出现Java compiler level does not match the version of the installed Java project facet 问题. 如图所示: 其实要解决也很简单,在资源管理器下,找到项目所在的目录,在.settings子目录里面,用文本编辑器打开org.eclipse.wst.common.project.facet.core.xml配置文件,如图所示: 修改红色画线部分,让它与项目的编译器版

Java compiler level does not match the version of the installed Java project fac

Java compiler level does not match the version of the installed Java project fac 问题一: 问:项目图标报错,Problems 试图有一条错误显示“Java compiler level does not match the version of the installed Java project facet.” . 答:这个是因为Facted Project 中的Java 版本设定与项目的Java 版本设定不一致