新建jsp报错“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”

  今天新建jsp文件时,就报错“Visual Page Editor has experimental support for Windows 64-bit”,然后刚好*上面有这个错误的解决方案,传送门:https://*.com/questions/30274852/visual-page-editor-has-experimental-support-for-windows-64-bit,据说是JBoss的小问题,然后就按照操作了一遍,但还是报错,如下:新建jsp报错“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”

原来是没有将Tomcat运行时相关类加入项目导致的,所以需要进行如下操作:

右击项目名称->propertise->java build path->libraries->add libraries->server runtime->选择你的tomcat 服务器->finish

报错就消失了~~~

上一篇:使用mii-tool设置网卡速率


下一篇:centos7下安装nginx的方法