美文网首页@IT·互联网工具癖
eclipse web工程出现The superclass &q

eclipse web工程出现The superclass &q

作者: landy8530 | 来源:发表于2017-07-21 23:30 被阅读80次

eclipse web工程在没有引入tomcat相应运行时环境的时候,会出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path的错误,如下图所示:

image.png

解决办法如下:
第一步:配置server runtime

image.png image.png image.png

第二步:在出现此错误的项目上单击鼠标右键》Build Path》Configure Build Path

image.png image.png

选择刚创建的runtime server即可

image.png image.png

相关文章

网友评论

    本文标题:eclipse web工程出现The superclass &q

    本文链接:https://www.haomeiwen.com/subject/fvsykxtx.html