当前位置: 代码迷 >> 综合 >> #bug解决#The superclass“javax.servlet.http.HttpServlet“ was not found on the Java Build Path
  详细解决方案

#bug解决#The superclass“javax.servlet.http.HttpServlet“ was not found on the Java Build Path

热度:69   发布时间:2024-02-24 08:50:16.0

解决办法

(1)确认eclipse中server的运行环境是否配置,设置方法为:Window-->Preferences-->Server-->RuntimeEnvironments-->Add-->选择Apache的版本后再填入安装的Apache Tomcat软件的安装目录

(2)右键web工程-->Build Path-->Configure buildpath-->Java Build Path -->Libraries-->Add Library-->ServerRuntime-->Next-->Apache Tomcat Server--Finish