Project facet issues in Meclipse

Source: Internet
Author: User

Project facet issues in Meclipse(2012-02-14 14:59:48) reproduced
Tags: gossip Category: Technology

Generally appear in the import from elsewhere on the project, only the project folder has a red fork, other places are normal, now summarizes the individual's several solutions:

There are several possibilities:
1, the encoding settings are consistent, that is, your project's original encoding and now eclipse with the default encoding is consistent
2, the jar path in the import project may have been changed, in most cases this is the cause, and I have met, you have to make sure that your jar package path is not a problem. MyEclipse have a view of the jar path you can switch to see, the red X is the path has been changed, re-add in OK.
3, the problem console has the following error message: Java compiler level does not match the version of the installed Java project facet. This can typically be done right--->properties--> the project and then find project facets and Java compiler two options to modify the JDK version that they use. If you do not find the project facets option, you can refer to the following method:

When you installed two versions of the JDK, two IDE development tools were used, such as two myeclipse,myeclipse8.5 and Myeclipse9.0.

This time it involves the JDK version of the problem, and the settings in MyEclipse are relatively hidden.
There is a project in eclipse that has the error, because the Java version setting in Facted project is inconsistent with the Java version of the project. And if the use of MyEclipse, this configuration is not very convenient to modify, the specific method to say later. In the case of the Eclipse JEE version, the use of the Java EE plug-in is WTP, in the WTP environment, right-click on the current project, in the properties--project facets, the configuration of the compiled version is consistent with the Java compiler version, the problem is resolved.
There is no project facets configuration option in MyEclipse, you will need to find the Org.eclipse.wst.common.project.facet.core.xml file under the. Settings folder for the current project, which reads as follows:
<?xml version= "1.0" encoding= "UTF-8"?>
<faceted-project>
<fixed facet= "Wst.jsdt.web"/>
<installed facet= "java" version= "1.6"/>
<installed facet= "Jst.web" version= "2.5"/>
<installed facet= "Wst.jsdt.web" version= "1.0"/>
</faceted-project>
where <installed facet= "java" version= "1.6"/> This line is the compilation level configuration of faceted project. <installed facet= "Jst.web" version= "2.5"/> This line of configuration also needs to be modified in some cases, such as building a Web project in MyEclipse and then importing it into Eclipse Jee, Sometimes it is necessary to modify this configuration.
After the configuration is saved, the problem is resolved after the project is refreshed and build.

Another method

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

Elipse This can be done by right-clicking on the project-->properties--> and then finding project facets and Java compiler two options to modify the JDK version that they use. If you do not find the project facets option, you can refer to the following method:

There is no project facets configuration option in Eclipse, you will need to find the Org.eclipse.wst.common.project.facet.core.xml file under the current project's. Settings folder, which reads as follows:


<?xml version= "1.0" encoding= "UTF-8"?>
<faceted-project>
<fixed facet= "Wst.jsdt.web"/>
<installed facet= "java" version= "1.6"/>
<installed facet= "Jst.web" version= "2.5"/>
<installed facet= "Wst.jsdt.web" version= "1.0"/>
</faceted-project>


where <installed facet= "java" version= "1.6"/> This line is the compilation level configuration of faceted project.

<installed facet= "Jst.web" version= "2.5"/> This line of configuration also needs to be modified in some cases, such as building a Web project in MyEclipse and then importing it into Eclipse Jee, Sometimes it is necessary to modify this configuration.

After the configuration is saved, the problem is resolved after the project is refreshed and build.

Project facet issues in Meclipse

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.