天天看點

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解決方案
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
           

項目右擊–>build path -->Add libraries–>server runtime–>next

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

選擇tomcat版本–>apply

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

然後如下圖 勾選相應tomcat版本–>apply–>apply and close

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

ok了!!!

報錯消失

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

繼續閱讀