1、环境: Win7x64、E:\ZC_IDE\Eclipse\Windows\eclipse-jee-mars-R-win32__apk__20180122_1457\eclipse.exe、E:\ZC_IDE\Tomcat\apache-tomcat-7.0.61-windows-x86 2、遇到解决了的问题 2.1、刚新建了 index.jsp 就在页面上报错:“
1、环境:
Win7x64、E:\ZC_IDE\Eclipse\Windows\eclipse-jee-mars-R-win32__apk__20180122_1457\eclipse.exe、E:\ZC_IDE\Tomcat\apache-tomcat-7.0.61-windows-x86
2、遇到&解决了的问题
2.1、刚新建了 index.jsp 就在页面上报错:“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”
原因:缺少 tomcat的 E:\ZC_IDE\Tomcat\apache-tomcat-7.0.61-windows-x86\lib\servlet-api.jar
解决:(1)、添加tomcat:Eclipse --> Window-->Preferences -->左侧树形 Server --> Runtime Environments --> 右侧 Add... --> Apache --> Apache Tomcat 7.0 --> Browser... --> 填入路径--> Finish --> OK
(2)、项目 右键--> Build Path -->Configure Build Path .. --> 左侧为"Java Build Path",右侧为"Libraries"新选项卡 --> Add Library ... --> Server Runtime --> 选择刚刚的"Apache Tomcat 7.0" --> 异常解决
3、
4、
5、