The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

来源:互联网 发布:linux解压zip包命令行 编辑:程序博客网 时间:2024/06/03 08:52

在eclipse中新建一个工程后,新建一个jsp文件,但是在jsp文件的开头出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path错误,

这是因为工程没有添加到服务器中,

  解决方法如下:

1、右击web工程-》proterties-》Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》选择相应服务器进行添加。

1 0
原创粉丝点击