天天看點

eclipse建立jsp檔案報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

eclipse建立jsp檔案報錯The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path

原因是應為缺少servlet jar包造成的,而tomcat伺服器中有servlet jar,是以講tomcat添加到項目路徑中就ok了

eclipse建立jsp檔案報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
eclipse建立jsp檔案報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
eclipse建立jsp檔案報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
eclipse建立jsp檔案報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
eclipse建立jsp檔案報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
eclipse建立jsp檔案報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
eclipse建立jsp檔案報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
eclipse建立jsp檔案報錯The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

已經不報錯了

jsp