今天我在eclipse上搭建新项目时,莫名其妙的出现这个错误,如下: The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 我在网上找了很多答案,解决方式很多种: ①设置jdk:(然而我设置了没用) ②将项目中Java Build Path ——Add Library——Server Runtime——Tomcat;(然后我项目不是使用tomcat,不能这样设置) ③添加…
0.环境: 新装win8.1系统,Tomcat配置无误. 1.错误: 项目中某一.jps页面忽然出现错误,鼠标点上去为:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path. 忽视错误,在Eclipse下启动tomcat的时候,报错为:Eclipse下启动tomcat报错:The archive: D:/Program Files/apache-tomcat-7.0.52…
具体表现为: 使用Eclipse+Maven建立了一个Javaweb工程,JSP页面顶端出现“红色”的报错信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path. 解决方法: 在pom.xml中的 <build></build>中 添加: <plugins> <!-- 编码和编译和JDK版本 --> <plug…
项目忽然出现 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法 0.环境: 新装win8.1系统,Tomcat配置无误. 1.错误: 项目中某一.jps页面忽然出现错误,鼠标点上去为:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil…
使用eclipse JavaEE 版,新建 Dynamic Web Project 项目.在项目里添加 JSP 文件,会在文件头部出现错误提示.提示语句为:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path.如下图所示: 1. 选中项目右键打开快捷菜单. 2. 在快捷菜单中点击 Properties 打开对话框. 3. 在左边栏选择 Project Facets,相应的…
使用eclipse JavaEE 版,新建 Dynamic Web Project 项目.在项目里添加 JSP 文件,会在文件头部出现错误提示.提示语句为:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path.如下图所示: 1. 选中项目右键打开快捷菜单. 2. 在快捷菜单中点击 Properties 打开对话框. 3. 在左边栏选择 Project Facets,相应的…
新建一个jsp文件后,有一个错误,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 解决方法: 1. 右键项目->build path->configure build path... 2. 选择 Java build path 3. Add Library->Server Runtime->Click Next 4. 选择 Server ru…