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.