The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path错误的解决办法

1.右键项目选择BuildPath.

2.点击Libraries中的Add Library按钮。

The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path错误的解决办法

3.选择server runtime然后点击next。

The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path错误的解决办法

4.选择项目对应的运行服务器,点击finish。

The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path错误的解决办法