Solution with Red Cross number after Eclipse import project

Source: Internet
Author: User

The most common cases I encountered in the project were small red forks:

1, the project code itself has a problem. (This will not be said, the resolution of the error is OK)

2. The jar package in the project is missing. (Sometimes when Eclipse opens, the jar packet is lost, turn eclipse back on or re-introduce the jar package OK)

3, from the external import project, the project reference jar package location is not correct, this in the "Project right" Bulid path "Configure Build path" Libraries "Adjust the location of the package is OK.

These are common, today to say the following:

The problem arises: import a project from the outside, the previous three kinds of problems are solved, but the project is still small red fork, it seems problems in the description of "Target runtime Tomcat v6.0 is not defiend". There are also some problems as shown in:

Solution:

A, find a solution on the Internet, find the project. Setting folder, there is a "org.eclipse.wst.common.project.facet.core.xml" file, put "<faceted-project ></faceted-project> "The content of the element is deleted, after the deletion of the project is not error, but when the project was run found that there is no" run as "and" Run on server "option. The main reason is that we

Some Web properties of the project were removed, the workaround: Right-click the project >>properties>>project Facets, check Java, JavaScript, Dynamic Web Module. And then we can find out again

Run on server is in the middle of the time. The drawings are as follows:

B. In fact, think of it is "Org.eclipse.wst.common.project.facet.core.xml" This configuration file problem, first look at this file did not change the previous content:

Solution with Red Cross number after Eclipse import project

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.