首页 > 代码库 > 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

完整错误信息:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESSFOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THECOPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICTLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING INANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THEPOSSIBILITY OF SUCH DAMAGE.

Description Resource Path Location Type

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path add.jsp /dwz-java/WebContent/WEB-INF/jsp/management/news line 1 JSP Problem

技术分享

在出现此错误的项目上单击鼠标右键》Build Path》Configure Build Path

技术分享

技术分享

技术分享

技术分享

技术分享

技术分享

2017-04-21更新

到了加入Server Library步骤时,里面是空选项,没有Tomcat 7.0选择,怎么办?

參考:eclipse server配置之加入 Tomcat server

======================文档信息======================

版权声明:非商用自由转载-保持署名-注明出处

署名(BY) :testcs_dn(微wx笑)

文章出处:[无知人生,记录点滴](http://blog.csdn.NET/testcs_dn)

==============欢迎关注我的个人微信订阅号(微wx笑)==========

__biz=MzAxNjgyNjM2NQ==&mid=2649768499&idx=1&sn=de3268cb7bf5d5571c8b5284b919520d&chksm=83ea08a1b49d81b78c1e5ea06c80137219027bd40b778f0cbeab1303ea40d29147101145512b#rd" style="text-decoration-line: none; color: rgb(12, 137, 207);">技术分享



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