导入已有的Java Web项目时出现关于javax.servlet的异常时解决措施

  • Post author:
  • Post category:java



1、Description Resource Path Location Type The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

2、Description Resource Path Location Type The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.jsp.PageContext. Fix the build path then try building this project

3、Description Resource Path Location TypeThe type javax.servlet.jsp.PageContext cannot be resolved. It is indirectly referenced from required .class files SaveLogoServlet.java



解觉方法:右击项目——>属性(Properties)——>找到Build Java Path——>右边有libraries选项,点击——>Add Libraries——>Server Runtime——>next,再选中你的tomcat服务器——>finish,回到Java Build Path右边界面中的Orader and Export——>选中刚刚添加的ok就可以了



版权声明:本文为blue_yun原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。