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


修改了編譯級別之后出現如下錯誤提示:

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的版本即可:

0_1320670666x5WZ

 

stackoverflow:

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."

2N4Mp

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

share | improve this question
 

3 Answers

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: eBm7e

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
   
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:1, 2, 3    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  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM