Eclipse Import Web Engineering issues Summary

Source: Internet
Author: User

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

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.