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

Source: Internet
Author: User

This morning, 64-bit eclipse was used to create a Web project, but when creating a JSP, "the superclass" Javax.servlet.http.HttpServlet "was" and "the" is not found on the Java Build Path, as shown in the following figure:


How to solve it.

1, select the Web project created and the right mouse button--> mouse hover to build path--> Click Configure builds Path, the following figure appears:


2, the above image to do the following: Find and click "Java Build Path"--> Click the "Libraries" tab--> click the "Add libray...-" button, appear the following figure:


3, select the above figure "Server Runtime" and then click "Next" button, appear in the following figure:


Note: If you select the "Server Runtime" above and click the "Next" button (pictured above), you need to set up the Apache server. Set method for:window-->preferences--> point Open Server node--> Click Runtime environment--> click "Add ... Button--> the Apache version after clicking Next, and then filling in the Apache Server Software Installation (decompression) address.

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


5, select red Box up the checkbox, and then click the "OK" button.

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.