美文网首页
The superclass javax.servlet.htt

The superclass javax.servlet.htt

作者: WSGNSLog | 来源:发表于2018-06-20 13:49 被阅读14次

用Eclipse进行Java web开发时,出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。Javaweb工程类中没有添加Tomcat运行时相关类导致。解决方法:

右击有错误提示的文件夹,点击”配置构建路径“,如下:

image

再点击”添加库“ Add Library,如下:

image

选中上图中标出的选项“Server Runtime”,再点击下一步,如下:

image

点击”完成“,如下:

image

相关文章

网友评论

      本文标题:The superclass javax.servlet.htt

      本文链接:https://www.haomeiwen.com/subject/toxxyftx.html