开发者

Eclipse cannot find javax.servlet.http.HttpServlet

I am using GWT with AppEngine on Eclipse. When I try to build a simple Servlet, Eclipse keeps complaining that javax.servlet.http.HttpServlet " cannot be found in source packages ".

How can I get Eclipse happy?

updated: found the problem: it seems Eclipse with the GWT pluging would rather have server-side code in a .se开发者_JAVA技巧rver package.


Make sure the gwt-user.jar from the gwt sdk is on your build path.


You could use maven and add a dependency toward a servlet-xxx jar like servlet-api-2.4.jar.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜