问答详情
源自:1-10 Eclipse开发Java Web程序

完全按照老师的做的,出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path报错

完全按照老师的做的,出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path报错

提问者:shannonshen 2016-09-22 10:54

个回答

  • shannonshen
    2016-09-23 16:52:39

    以后还是得看错误提示,不能瞎百度,在build path  libraries 里面点Add external JARs,添加tomcat \lib文件夹下的servlet-api.jar就行了

  • shannonshen
    2016-09-22 15:16:37

    我用的是tomcat9.0,eclipse neon,jdk1.8

  • goldlone
    2016-09-22 13:06:32

    我昨晚也遇到了,按照这个方法解决了!

    http://jingyan.baidu.com/article/f79b7cb34f40569144023ef9.html