原因:创建jsp文件的步骤如下:出现"javax.servlet.http.HttpServlet" was not found on the Java) 报错信息就是因为没有进行步骤2(步骤2在创建servlet时无需选择)解决方案:点击项目名,鼠标右击,build path ——>configure build path选择add libary——> server runtime