Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit the Java Facet setting in eclipse

Tags:

eclipse

facet

Some background: I'm getting the dreaded "Java compiler level does not match the version of the installed Java project facet" error in my eclipse project. I'm using Eclipse Helios on OS X Snow Leopard.

I'm having trouble editing the java facet settings for eclipse and maven. I've searched around and everywhere says to go to Project Properties -> Project Facet and edit the version there. However for my instance of Eclipse, these settings are not available through the UI.

How do I edit the java facet version manually?

like image 563
rwyland Avatar asked Oct 18 '11 04:10

rwyland


1 Answers

Found it in the project under:

/.settings/org.eclipse.wst.common.project.facet.core.xml

<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <fixed facet="wst.jsdt.web" />
  <installed facet="java" version="1.5" />
  <installed facet="jst.web" version="2.3" />
  <installed facet="wst.jsdt.web" version="1.0" />
</faceted-project>

For me, I had to change the java version 1.5 to 1.6 Thought it would be useful for others since its not well documented.

like image 114
rwyland Avatar answered Oct 31 '22 07:10

rwyland