您的位置:首页 > 理论基础 > 计算机网络

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

2016-06-24 10:25 453 查看
在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 -》选择相应服务器进行添加。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: