使用maven创建项目时报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu

Posted 寒潭渡鹤影

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用maven创建项目时报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu相关的知识,希望对你有一定的参考价值。

 Description Resource Path Location Type

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path index.jsp /ssm-crud/WebRoot line 1 JSP Problem

解决办法如下所示:

在add Library时,没有server runtime,就是用MyEclipse server library

 

然后next->ok。错误就没有了。

 

以上是关于使用maven创建项目时报错The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu的主要内容,如果未能解决你的问题,请参考以下文章

使用Eclipse自带的Maven插件创建Web项目时报错:

解决Maven打包时报错"The packaging for this project did not assign a file to the build artifact"(示

eclipse创建maven项目时报错解决办法

eclipse再倒入maven项目时报错

配置Maven时报错The JAVA_HOME environment variable is not defined correctly,this environment解决方法汇总

Spring Boot 构建项目时报错:You need to run build with JDK or have tools.jar on the classpath.If this occure