About importing items into eclipse a small red fork in the resolution note

Source: Internet
Author: User
Tags apache tomcat

For example: Import a jdk1.8 + Tomcat 8 project into Jdk1.7+tomcat 7 and deploy

A small red fork appears when you import a Web project into your hands first

First click on the item in the right mouse button--"Select Properties

On the right side of the pop-out window, select the "Libraries" tab, select the place where the Red fork appears, and click "Edit ..." on the right. Button

Change it to your eclipse's operating environment JDK1.8-->JDK 1.7, Tomcat 8--and Tomcat 7

2. If all of the above steps are done, the Little Red fork disappears, but when you publish the project to Tomcat, you find the selected

The button posted to Tomcat 7 is grayed out, and this is where Eclipse's "project storage" is supposed to be found--"Find this item"

--"Click Open File Project Folder"--"Find the. Settings folder, click"-"Find the Org.eclipse.wst.common.project.facet.core.xml file"

--"Notepad open will be inside"

<?XML version= "1.0" encoding= "UTF-8"?><Faceted-project>  <Runtimename= "Apache Tomcat v8.0"/>  <fixedfacet= "Wst.jsdt.web"/>  <fixedfacet= "Jst.web"/>  <fixedfacet= "Java"/>  <installedfacet= "Java"version= "1.8"/>  <installedfacet= "Jst.web"version= "3.1"/>  <installedfacet= "Wst.jsdt.web"version= "1.0"/></Faceted-project>

Modify the appropriate version and environment

For example, modify the following

<?XML version= "1.0" encoding= "UTF-8"?><Faceted-project>  <Runtimename= "Apache Tomcat v7.0"/>  <fixedfacet= "Jst.web"/>  <fixedfacet= "Wst.jsdt.web"/>  <fixedfacet= "Java"/>  <installedfacet= "Java"version= "1.8"/>  <installedfacet= "Jst.web"version= "3.0"/>  <installedfacet= "Wst.jsdt.web"version= "1.0"/></Faceted-project>

Then it will be released!!!!

About importing items into eclipse a small red fork in the resolution note

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.