Eclipse中jsp页面报The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

来源:互联网 发布:discuz cms 编辑:程序博客网 时间:2024/06/06 04:51

          在我们创建新的web项目的时候,通过eclipse创建时,当我们新增一个jsp页面的时候,

经常会出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”

这种错误,虽然项目不报错,但是看着这个错误也是非常的不好。

        具体的解决方法:

        1、项目右键:build Path -->Configure Build Path

        2、选择图中Libraies

       3、选择 Server RunTime

         4、next   选择 已经存在的tomcat版本

        5、点击Finish

        6、刷新项目,错误就消失了


0 0
原创粉丝点击