"Faceted Project Problem (Java Version Mismatch)" Error Message

Faceted Project Problem (Java Version Mismatch) error message

Did you check your Project Properties -> Project Facets panel? (From that post)

A WTP project is composed of multiple units of functionality (known as
facets).

The Java facet version needs to always match the java compiler compliance
level.

The best way to change java level is to use the Project Facets
properties panel as that will update both places at the same time.

WTP

The "Project->Preferences->Project Facets" stores its configuration in this file, "org.eclipse.wst.common.project.facet.core.xml", under the ".settings" directory.

The content might look like this

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="WebSphere Application Server v6.1"/>
<fixed facet="jst.java"/>
<fixed facet="jst.web"/>
<installed facet="jst.java" version="5.0"/>
<installed facet="jst.web" version="2.4"/>
<installed facet="jsf.ibm" version="7.0"/>
<installed facet="jsf.base" version="7.0"/>
<installed facet="web.jstl" version="1.1"/>
</faceted-project>

Check also your Java compliance level:

Java compliance level

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

Assuming that you are using the m2e plugin in Eclipse, you'll need to specify the source and target versions as 1.6 for maven-compiler-plugin. m2e uses these values to determine the project's Java compiler level. A snippet of the POM is shown below:

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>

Alternatively, you can specify the maven.compiler.source and maven.compiler.target properties with values of 1.6, that happen to be the equivalent:

<properties>
<maven.compiler.target>1.6</maven.compiler.target>
<maven.compiler.source>1.6</maven.compiler.source>
</properties>

Faceted Project Eclipse environment

Eclipse gives up a solution.

Just click right mouse over the problem, in the Problems view, Choose "Quick Fix", and run with another version which I was running before.

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

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.

IBM RAD - Java Compiler & Project Facets Mismatch

EDIT:

Did not read your Question carefully enough......

May try going to org.eclipse.wst.common.project.facet.core.xml which is located in your .settings folder of your Project and edit it manually to 1.7 like this:

<installed facet="java" version="1.7"/>


Looks like you have a faceted Project, maybe try going to Project->Properties->Project Facets and look if Java is set to 1.7.

Sample Image

Else if you are using maven put this

<properties>
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.7</maven.compiler.source>

</properties>

eclipse org.eclipse.jem.workbench.javaEMFNature (missing)

The project has been created with some tools/plug-ins that are missing in your installation (EMF and jst).

To add the missing tooling install the Eclipse Java EE Developer Tools into your existing Eclipse.

Alternatively, use the Eclipse IDE for Enterprise Java Developers instead of the Eclipse IDE for Java Developers you probably have.

Empty Dynamic web project facet problem in eclipse

Thanks to @howlger suggestion , by changing the default java version in Project facet to 15 , the error disappeared :
Sample Image

Cannot change project facet java version to 1.7 (Option not available)

Sorry... I don't know why that is happening... I had similar problem today.

But to fix your problem, you can go to yourproject/.settings/org.eclipse.wst.common.project.facet.core.xml and change there manually. refresh your project and it should be good to go. :)

You will be looking for something like

<installed facet="java" version="1.7"/>


Related Topics



Leave a reply



Submit