There is a red fork problems on Eclipse Project appears errors:target runtime XXX is not defined

Source: Internet
Author: User

After importing a new Web project, a red fork appears on the newly imported Eclipse project, but the code that has been written does not indicate where there was an error, checked the jar package, and found no problem.

Run the project, found that no error, all functions can be performed normally without affecting the operation of the program.

Last look at the problems: found prompt to have a errors=>>target runtime XXX is not defined

Solution:

(1) in the. Settings folder in the project directory, open the Org.eclipse.wst.common.project.facet.core.xml file with the following contents:

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

(2) Delete all the contents of the middle, leaving the content below to:

<?xml version= "1.0" encoding= "UTF-8"?>
<faceted-project>

</faceted-project>

(3) Reason: Imported Web project the configuration in the XML file and your current configuration to be inconsistent, you did not define the file specified by the server

Related Article

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.