JavaWeb: 報錯信息The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
今天建立了一個Javaweb工程,並在eclipse中配置了Web容器Tomcat。JSP頁面頂端出現“紅色”的報錯信息:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path。原因是Javaweb工程類中沒有添加Tomcat運行時相關類導致。
下面是具體的解決方法:
1、右擊web工程-->屬性或Build Path-->Java Build Path-->Libraries-->Add Libray-->Server Runtime-->Tomcat Server
2、切換到Java Build Path界面中的Orader and Export,選擇Tomcat。
注意:
按以上方法操作時,若打開Server Runtime後一片空白,需要設置Apache服務器。設置方法為:window->Preferences->Server->Runtime Environment -> add --> 選擇Apache的版本後點Next,再填入你apache服務器軟件的安裝(解壓後)地址。
Hadoop Eclipse 插件編譯安裝1.2.0 http://www.linuxidc.com/Linux/2013-07/87428.htm
Hadoop在Eclipse中的插件編譯 http://www.linuxidc.com/Linux/2013-04/83295.htm
Hadoop 1.2.1編譯Eclipse插件 http://www.linuxidc.com/Linux/2013-10/91666.htm
Ubuntu 13.10安裝JDK、Eclipse for C/C++(解決全局菜單問題) http://www.linuxidc.com/Linux/2013-11/92305.htm
如何在Ubuntu 14.04中安裝最新版Eclipse http://www.linuxidc.com/Linux/2014-08/105090.htm
iptables failed. The error was: Applying iptables firewall rules: FATAL: Module ip_tables not found
The future of the Linux Security Module API
VirtualBox安裝增強功能時The headers for the current running kernel were not found
Python build finished, but the necessary bits to build these modules were
configure: error: *** libmcrypt was not found
VMtool安裝,Enter the path to the kernel header files for the。。。。