java web错误:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Bu

185 阅读1分钟

在用Eclipse导入别人的项目到工作空间中,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。

我的是由于项目缺少运行的环境,这时需要右键项目名,为项目添加本机的server runtime就ok了