Summary of questions:
1. The project structure of the re-import is different from the original
SRC packages and so on are different from the original, open the project home directory, there is a. classpath file, with Notepad opened will find a line of <classpathentry kind= "src" path= "src"/> it means your source file location. To see if there is no such line, no need to make up, the following is the import path for some jar packages, such as:
These two lines should also be myeclipse automatically generated, Java running environment \j2ee1.4
<classpathentry kind= "Con" path= "Org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind= "Con" path= "Com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>
Imported JAR Package Location
<classpathentry exported= "True" Kind= "Lib" path= "Web/web-inf/lib/commonj-twm.jar"/>
2. Refresh the item does not compile automatically, delete the bytecode file in the Classes folder below Web-inf and no longer regenerate
This problem is encountered to check if there is a line
<classpathentry kind= "Output" path= "Web/web-inf/classes"/>
This is to specify the output of bytecode files to where, if not specified will not be the default for you to find a place to save.
3. The above two steps have been completed, but the project still can't run
This time you need to use the MyEclipse project cleanup function, there is a clean in project in the menu bar, it will force clear those configuration files, rebuild will be correct.
Turn from: http://aayy520.blog.163.com/blog/static/231822602011231575230/