How to change the Java version of my “installed project grant” in Eclipse?

I just installed Eclipse 3.7 and Google Plugin for Eclipse because I want to teach myself how to use the Google App Engine.

When I create a new web application and run, I received an error message, noting that annotations are not allowed in my version of JRE (1.4). Therefore, I set my JRE to 1.6 and my compiler compliance level to 1.6.

However, now I get this new error.

Description Resource Path Location Type Java compiler level does not match the version of the installed Java project facet. Myprojectname Unknown Faceted Project Problem (Java Version Mismatch) 

How do I change the "version of the installed grant for a Java project"?

In the left part of the project properties menu there is no element called "Project Schedule".

+10
java eclipse google-app-engine
Jun 21 '12 at 1:10
source share
3 answers

If you receive this validation message, you can find “Project Boundaries” according to your project properties. You should see a screen similar to this one where you can change the Java facet version:

enter image description here

If you do not see this page, then the project you created is likely to be damaged. How did you create it? Have you used the wizard provided by the Google plugin for Eclipse? If so, you will need to submit a bug report to Google as they do not create a valid project.

Regardless of the above, you should solve this problem by right-clicking on the problem in the problem view and selecting the "quick fix", in which you will be focused on aligning the java facet and java parameters.

+28
Jun 21 '12 at 1:18
source share

If you have not found a solution, or someone else is facing this problem:

I had the same problem with the "project face" and there was no "Project Boundaries" page in the project properties when switching from 1.7 to 1.6. I was able to fix this by editing the org.eclipse.wst.common.project.facet.core.xml file in the project .settings folder.

In this file, I had the following code in which 1.7 was replaced with 1.6, and the error disappeared:

  <?xml version="1.0" encoding="UTF-8"?> <faceted-project> <installed facet="java" version="1.7"/> </faceted-project> 

EDIT: I forgot to mention that you need to edit the filters in Package Explorer to show. * resources: select "View menu" (down arrow) → Filters ... → uncheck ". * resources" → click "Ok" and you should see the .settings folder.

+15
Sep 05 '12 at 9:11
source share

If you are using the Eclipse IDE for Java EE Developers , you must have a Project Facets property section.

Perhaps your Eclipse 3.7 is an Eclipse IDE for Java Developers . In this case, you need to add the ability to have edges by setting the advantages of EE ...

use the help → Install new software ... → Work with: (select Indigo) and then release “Web, XML, Java EE and OSGi Enterprise Development” and check out the Eclipse Java EE Developer Tools

Enabling restarting Eclipse should now add the visibility of the Fac Facit property section.

+6
Jan 09 '13 at 21:52
source share



All Articles