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

JavaEclipseGoogle App-Engine

Java Problem Overview


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

enter image description here

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

Java Solutions


Solution 1 - Java

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

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.

Solution 2 - Java

Right click on your project->properties->Project Facets,

This will show your current version of java for your project facet.

In my case I had the correct version for my facet but not my compiler, So had to right click on project->properties->Java Compiler

Then under Compiler compliance level drop list and change to version of project facet.

Solution 3 - Java

its simple.. in Problems infotab, rightclick on error desc and select quickfix... choose facet version upgrade..

Solution 4 - Java

I got this issue in IBM RAD tool eclipse It got resolved following below.

  • Right click on project
  • Properties
  • Project facets
  • Configuration (select Default configuration for WebSphere application server v7.0 )
  • Apply

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiondangerChihuahua007View Question on Stackoverflow
Solution 1 - JavaGokcenGView Answer on Stackoverflow
Solution 2 - Javajava tranieeView Answer on Stackoverflow
Solution 3 - Javakumar raviView Answer on Stackoverflow
Solution 4 - JavaArjun KushwahView Answer on Stackoverflow