修改了编译级别之后出现如下错误提示:
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
|
|||
add a comment |
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: 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.
|
||||||||||||||||||||
|