eclipse中,项目有红叉之- The superclass "javax.servlet.http.HttpServlet" was not found on the Java
Posted 孟夏草木长
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse中,项目有红叉之- The superclass "javax.servlet.http.HttpServlet" was not found on the Java相关的知识,希望对你有一定的参考价值。
1.The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
2.原因:确实servlet-api.jar
3.导入servlet-api.jar,其中一种方法:项目右击->build path->configure build path->add library->server runtime->apache tomcat
以上是关于eclipse中,项目有红叉之- The superclass "javax.servlet.http.HttpServlet" was not found on the Java的主要内容,如果未能解决你的问题,请参考以下文章
eclipse中,项目有红叉之-Cannot change version of project facet Dynamic Web Module to 3.1