新建web工程报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了新建web工程报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build 相关的知识,希望对你有一定的参考价值。
解决方法一:找到tomcat安装路径,在tomcat根目录下的lib文件夹里,有一个servlet-api.jar,将这个jar包导入到项目中即可;
解决方法二:(1)右击web工程->属性或Build Path->Java Build Path -> Libraries -> Add Library... ->Server Runtime -> Tomcat Server
以上是关于新建web工程报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build 的主要内容,如果未能解决你的问题,请参考以下文章
JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil
JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui
Java Web报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build
JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui
JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path