Java Web报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build
Posted Kaspar_Choo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Java Web报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build相关的知识,希望对你有一定的参考价值。
问题描述:
我们在用Eclipse进行Java web开发时,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。我们该怎么解决这个问题呢?
问题原因:
原来Javaweb工程类中没有添加 Tomcat运行时相关类 导致。尤其是导入项目的时候最容易出现。
解决办法:
下面是具体的解决方法:
1、右击 web工程 --> 属性或Build Path --> Config Build Path... --> Java Build Path --> Libraries --> Add Library... --> MyEclipse Server Library --> Apache Tomcat v8.5
完成后,错误消失。
以上是关于Java Web报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build的主要内容,如果未能解决你的问题,请参考以下文章
Java Web 项目报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui
新建web工程报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build
[IDE - Eclipse] JSP报错: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 Buil
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 Bui