facebook

How to change the java project facet version?

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #317191 Reply

    Hello,

    I changed the compiler compliance level and now get an error:
    Java compiler level does not match the version of the installed Java project facet.

    I googled a bit and found the advice to change the Java version:
    The Java Facet version is accessed by:
    – Right mouse click on Project
    – Select Properties->Project Facets
    – You can click on the ‘Java’ version column

    But there is no such menu in MyEclipse 9. There is no reference to facets anywhere in Myeclipse. This is not completely true, because the Quick fix for that problem proposes to “Change Java project facet version to Java 1.5”. That is good, but there ought to be a menu to do the same function.

    So does anybody know where to get to the Project Facet menu? In MyEclipse?

    #317200 Reply

    support-swapna
    Moderator

    florianfj,

    We do not have a facet menu yet as we still do not fully support facets.

    Alternatively you can edit the file “org.eclipse.wst.common.project.facet.core.xml” in “.settings” directory of the project and change java facet version.

    For Example :

    <installed facet=”jst.java” version=”5.0″/>
    <installed facet=”java” version=”1.5″/>

    So if you want to change compliance level to 1.5 or 1.6 for jst.java, you have to set version to 5.0 or 6.0
    and for “java” it would be 1.5 or 1.6.

    Let me know how this works for you.

    #317203 Reply

    Brian Fernandes
    Moderator

    florian,

    Please go to Window > Preferences > General > Capabilities and select the Advanced button. Expand “MyEclipse Standard Tools” and check the “WTP Extras” checkbox.

    If you go to your project properties dialog, you will now see a “Project Facets” property page on which you can change the facet version. Thanks for highlighting this issue, we will enable this page by default in MyEclipse 9.0.1.

    #317208 Reply

    That works perfectly, thanks!

    #317345 Reply

    support-joy
    Member

    Good to hear you are all set.

    Best.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How to change the java project facet version?

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in