eclipse新建的web程序,然后创建了一个jsp文件,第一行就出现红叉
我新建的web程序,然后创建了一个jsp文件,然后jsp文件的第一行就出现红叉
用鼠标点上去出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”
解决方法:应该是缺少sevlet的jar包
假定你用的是tomcat
我新建的web程序,然后创建了一个jsp文件,然后jsp文件的第一行就出现红叉
用鼠标点上去出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”
解决方法:应该是缺少sevlet的jar包
假定你用的是tomcat
右键点击项目->build path->configure build path->add library->server runtime->apache tomcat
或者
右键点击项目->属性->targetedRuntime->勾选tomcat
本文介绍了解决Eclipse中新建的web项目内JSP文件出现红叉提示javax.servlet.http.HttpServlet未找到的问题。主要原因是缺少Servlet的jar包。解决方案包括调整项目构建路径,添加Apache Tomcat服务器运行时环境。
1861

被折叠的 条评论
为什么被折叠?



