新建 jsp异常,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build P

Posted 越 影

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了新建 jsp异常,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build P相关的知识,希望对你有一定的参考价值。

  新项目,新建jsp页面的时候报异常:

Multiple annotations found at this line:
    - 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

  右击项目 -> Properties -> Java Build Path -> Libraries 选项 -> 点击 Add Library -> Server Runtime

  选择tomcate -> 完成。

  如下:

  再看jsp 页面已经正常了。

 

以上是关于新建 jsp异常,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build P的主要内容,如果未能解决你的问题,请参考以下文章

jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServl

JavaWeb:报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Buil

JavaWeb: 报错信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bui

MyEclipse中,使用Maven新建web项目后,提示The superclass "javax.servlet.http.HttpServlet" was not found

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

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