The superclass "Javax.servlet.http.HttpServlet" is not found on the Java Build Path

Source: Internet
Author: User

A Web project was created using 64-bit eclipse this morning, but when a JSP was created "the superclass" Javax.servlet.http.HttpServlet "was not found on the Java Build Path ", such as:


How to solve it?

1. Select the Web project you created and right-mouse hover to build path--> Click Configure Build Path, which appears:


2, to do the following: Find and click on the "Java Build Path"-click on the "Libraries" tab-click on the "Add libray...-" button appears:


3. Select "Server Runtime" and click "Next" button to appear:


Note: If you select "Server Runtime" and then click "Next" button (such as) blank, you need to set up Apache server. Set the method to:window-->preferences--> point to open the server node--click Runtime environment--> click "Add ... "Button--Select the Apache version and click Next, and then fill in the Apache Server Software Installation (unpacked) address.

4, select the "Apache Tomcat v7.0" option in, then click "Finish" button, then go back to the first step of the interface, click on the first step of the interface "Orader and Export", appears:


5. Check the red box and click the "OK" button.

The superclass "Javax.servlet.http.HttpServlet" is not found on the Java Build Path

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.