Errors and solutions in files in The Myeclipse Development Environment: The import javax. servlet cannot be resolved ?, Javax. servlet

Source: Internet
Author: User

Errors and solutions in files in The Myeclipse Development Environment: The import javax. servlet cannot be resolved ?, Javax. servlet

1. Development Tool: MyEclipse

2. Right-click the project> Build Path> Add External Archives (Tomcat> lib> servlet-api. jar) 1:

Figure 1

3. Open> servlet-api. jar

4. Complete


When importing import javaxservlethttpHttpServletRequest to a Java Web project developed using myeclipse, an error is prompted.

Because you have not imported the servlet-api.jar package
Import method: Right-click your project properties, and then
Select the imported external jar to go to the bin directory under your tomcat installation directory select servlet-api.jar




An error occurs when the project written in MyEclipse is introduced to eclipse. It is found that import javaxservlethttpHttpSession cannot be introduced.

Many jar files are integrated in MyEclipse.
Eclipse needs to manually set the jar required by your project
HttpSession
It may be the jar of serlet-api in tomcat
Check the bucket path of your project.

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.