When you are learning, you have encountered a red Cross when importing items from the same group. But no specific errors were found. Starting with the problem of build path, the relevant jar package was re-examined and added again in libraries, but did not resolve the issue. After careful examination later found, is a very simple problem, before all want to complicate. JDK version is not the same, replace the JDK7 JDK8, and then the relevant configuration, the Red Fork to solve more than half.
As a rookie programmer, sometimes a small problem can have a big impact. But when the experience is not enough, I don't know where to start. In order to successfully write the project, in order to be able to write the project can solve the problems and errors and not overwhelmed, you should write more practice accumulated experience.
It was later seen that such a case was similar to the case, as a reference and learning to put here:
A project case that uses JSON and jquery to implement Ajax, a small red fork appears in the project after importing MyEclipse, but cannot find the error page. Click on the error pages to enter the Web. XML page, after careful examination did not find an error, after trying to change the small red fork, and then run the JSP page 404 error.
I read it carefully again. The project comes with a readme for the Help document, which reads:
1. Before importing 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 the JRE in your development environment and the name of the Tomcat library may be inconsistent with the source code, there may be a Build Path error, the workaround is as follows: Right-click Project->build path->configure Build path-> Select Libraries tab page, remove the library-> with the small red Fork Click Add library-> Select JRE System Library (delete tomcat Library, select Server Runtime), and select a JRE after->finish.
According to this method to change, still error.
The problem was found this morning and a configuration of my current project needs to be modified. Go to the. Settings directory under the project package, locate the Org.eclipse.wst.common.project.facet.core.xml file, and open it with Notepad before you find this sentence problematic: runtime name= Apache Tomcat v6.0 "/". The tomcat that I set up in Eclipse is version 7.0, and it's running in the 6.0 version of Tomcat, and there's definitely a problem. So this sentence is deleted, normal.
I first tried it in the MyEclipse, The tomcat I configured in my MyEclipse was version 6.0, and when I found out that Org.eclipse.wst.common.project.facet.core.xml was 7.0, it was funny, but it didn't match me. Is like Will Shaolin soccer inside that Lens: will iron head! But just be people beat leg, have King Kong leg but just be people head the same.
Reference:
Http://www.jb51.net/article/48304.htm
http://blog.csdn.net/zhongweijian/article/details/9258997
160504 Error in the project