Eclipse Imports various error 1 Web Projects. Javaweb: error message The superclass "javax.servlet.http.HttpServlet" is not found on the Java Build Path
workaround: Right-click web project-"properties or build path-" Java build path->libraries-> Add libray...->server Runtime-"Tomcat Server"
Switch to Orader and Export in the Java Build path interface and select Tomcat.
When you do this, you need to set up an Apache server if you open the server runtime Blank. Set the method to: window->preferences->server->runtime environment, add-on, Select the Apache version and click Next. Then fill in the installation (unpacked) address of your Apache server Software.
2. Chinese display garbled after import
Before you import the project, verify that the workspace encoding is set to Utf-8:window->preferences->general->wrokspace->text file Encoding->other Select UTF-8
3. After importing, the build path error may occur because the JRE in your development environment and the Tomcat library name may be inconsistent with the source code
The workaround is as follows: right-project->build path->configure Build path-> Select libraries tab---remove library-> with small red Fork click Add library- > select a JRE after selecting the JRE System Library (select Server Runtime by deleting the Tomcat Library).->finish.
4.Tomcat version is not the same
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 the sentence is deleted, normal
It is recommended that you restart eclipse after you have done this, and sometimes you need to restart to take effect after you have made changes
Eclipse Import Web Engineering issues Summary