java错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu

我们在用Eclipse进行Java web开发时,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。我们该怎么解决这个问题呢?

我们遇到的错误显示如下:
java错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu

java错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu

java错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu

java错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu

java错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu