代码改变世界

错误:javax.servlet.http.HttpServlet" was not found on the Java Build Path

2016-07-02 18:02  faunjoe88  阅读(319)  评论(0编辑  收藏  举报

我们在用Eclipse进行Java web开发时,可能会出现这样的错误:

The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。我们该怎么解决这个问题呢?

 

下面是具体的解决方法:
右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》Tomcat Server