Eclipse Imports a Java Web project with a red fork in the project name and no Red Cross anywhere else.

Source: Internet
Author: User
Tags java web apache tomcat

This occurs when eclipse imports someone else's Java Web project: Only the project name appears with a red fork and there is no Red cross elsewhere. This can be caused by several situations, and the solution is as follows:


1. Before you import the project, make sure that the workspace encoding is set to Utf-8:window->preferences->general->wrokspace->text file Encoding->other Select UTF-8.


2. After the import, because your development environment in the JRE and the name of the Tomcat library may be inconsistent with the source code, there may be a build Path error, the solution is as follows: Right-Project->build path->configure Build path-> Select Libraries tab-> Delete with small red fork library-> Click Add library-> Select JRE System Library (delete tomcat The library words Select Server Runtime)-> Select a JRE after->finish.


3. Enter the project package under the. Settings directory, find Org.eclipse.wst.common.project.facet.core.xml file, with Notepad opened only to find this sentence has a problem: "Runtime name=" Apache Tomcat v6.0 "/". The tomcat set in my Eclipse is version 7.0, and its operating environment is version 6.0 tomcat, and there is a certain problem. So delete this sentence, normal [note].



[Note]: Transfer from: http://blog.csdn.net/niu_hao/article/details/17440247

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.