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