Eclipse 创建 Dynamic Web Project ,jsp页面顶部报红叉,Problems面板查看错误提示 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
解决办法:
选择项目右键- Build Path-Configure Build Path - Java Build Path - Libraries-Add Library - Server Runtime - Next
选这一个server runtie - FINISH
如果没有server runtime 怎么办,那就去添加一个,Window -Preferences -Server -Runtime Environments-Add
本文详细介绍了如何解决在使用Eclipse创建DynamicWebProject时出现的'Thesuperclassjavax.servlet.http.HttpServletwasnotfoundontheJavaBuildPath'错误问题,包括如何配置BuildPath和添加ServerRuntime环境。

1万+

被折叠的 条评论
为什么被折叠?



