[J2EE]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
  • description:

    新建jsp页面出现小红叉错误警示.

    [J2EE]The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path_第1张图片

  • solution

    原因是没有加入tomcat运行类.
    web工程->右键build path->configure build path->libraries->add library->server runtime->apache tomcat vX.0

你可能感兴趣的:(java,tomcat,jsp)