新建 jsp异常,The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
2017-05-28 01:14
676 查看
新项目,新建jsp页面的时候报异常:
![](https://oscdn.geek-share.com/Uploads/Images/Content/201705/28/322ee1d92d1a3fd353f3719dbc1e97bb.png)
右击项目 -> Properties -> Java Build Path -> Libraries 选项 -> 点击 Add Library -> Server Runtime
![](https://oscdn.geek-share.com/Uploads/Images/Content/201705/28/b3bda48580e1203c05ef1c9bfe2d93a3.png)
选择tomcate -> 完成。
![](https://oscdn.geek-share.com/Uploads/Images/Content/201705/28/18d703fb7acff2d6c23de1674a39e928.png)
如下:
![](https://oscdn.geek-share.com/Uploads/Images/Content/201705/28/fec3d14bfd8e4c9a789209742f429d36.png)
再看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
![](https://oscdn.geek-share.com/Uploads/Images/Content/201705/28/322ee1d92d1a3fd353f3719dbc1e97bb.png)
右击项目 -> Properties -> Java Build Path -> Libraries 选项 -> 点击 Add Library -> Server Runtime
![](https://oscdn.geek-share.com/Uploads/Images/Content/201705/28/b3bda48580e1203c05ef1c9bfe2d93a3.png)
选择tomcate -> 完成。
![](https://oscdn.geek-share.com/Uploads/Images/Content/201705/28/18d703fb7acff2d6c23de1674a39e928.png)
如下:
![](https://oscdn.geek-share.com/Uploads/Images/Content/201705/28/fec3d14bfd8e4c9a789209742f429d36.png)
再看jsp 页面已经正常了。
![](https://oscdn.geek-share.com/Uploads/Images/Content/201705/28/2a87802cbe9ea6abbb8259442334bc1d.png)
相关文章推荐
- 新建JSP报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Eclipse新建Jsp页面提示 The superclass "javax.servlet.HttpServlet" was not found on the Java Build Path
- 新建jsp报错“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”
- 新建MAVEN工程,JSP页面报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”
- java web(jsp)-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
- MyEclipse:jsp错误 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
- maven新建web项目提示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
- JSP页面报错: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
- jsp错误: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
- eclipse编写jsp时候显示:te 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解决方法
- Maven构建WEB项目JSP报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