发表于: 2016-10-13 11:20:25

5 2337


创建Maven项目错误报告

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

Project Explorer处右击问题工程,Build Path—Configure Build Path—Java Build Path—Libraries—ADD Library—Server Runtime—Apache Tomcat v9.0—finish

 

 

server runtime下没有tomcat选项

网上下载Tomcat v9.0并以JDK路径为依据安装

Eclipse—Window—Preferences—Server—Runtime Environments—Add—Apache—Apache tomcat v9.0—next—填写Tomcat v9.0的安装路径

以下方法可能在另外问题上有效:

Help

InstallNew Software

Add------"Kepler" repository(http://download.eclipse.org/releases/kepler)

连接成功后

Web,XML, Java EE and OSGi Enterprise Development ->JST Server AdaptersExtensions(打勾选上该项)

然后全部NEXT

JST Server Adapters,JST Server Adapters Extentions JST Server UIWST Server Adapters



返回列表 返回列表
评论

    分享到