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

JSP的jar类错误;The superclass "javax.servlet.http.HttpServlet" was not found on......报错

2016-10-18 10:42 344 查看
一、eclispe的jsp 首行报错错误原因为缺乏运行环境(推荐方法1)

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

或者
Multiple annotations found at this line:

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

             Build Path

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

             Build Path

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

1,bulid pase 里面缺乏导入RunTime:导入Library  ->server runtime,并在Order and Export中选择tomcat(需要eclipse配置tomcat)。
2,在WEB-INF目录-->新建lib-->选择tomcat安装目录里面的lib里面jar包,全部复制--->复制到lib里面
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  jsp jar 报错
相关文章推荐