开发工具中出现报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

jsp界面  出现报错信息

报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

原因可能是项目中没添加tomcat运行相关类造成的。

解决方案:

  邮件项目--->

      属性--->

          java Build Path -->

              Libraries -->add library---->server Runtime ----->tomcat Server

随后在切换到java Build path  界面中的   Order and Export   选择Tomcat

       

猜你喜欢

转载自www.cnblogs.com/zCuisf/p/9632787.html