eclipse---配置,解决The superclass "javax.servlet.http.HttpServlet" was not found on the Java

来源:互联网 发布:淘宝一元秒杀怎么付款 编辑:程序博客网 时间:2024/06/15 13:36

在eclipse中做jsp的开发,需要配置tomcat。没有配置时,会提示

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


首先需要去tomcat的网站下载tomcat

http://tomcat.apache.org/

可以现在安装版,会帮你搞定一些设置。




下载后,下一步安装即可,可以配置安装路径,用户名 密码


安装后,在eclipse中

file--new--other,再打开的窗口中可以输入server,选择你安装的tomcat版本对应的server,把现有的工程加入,finish即可


操作完成后,在自己的工程上右键,perporties--java build-path---add library--runtime,选择tomcat,finish


到这里报错已经被解决。


0 0