开发者

Eclipse cannot find javax.servlet.http.HttpServlet

开发者 https://www.devze.com 2023-03-26 14:41 出处:网络
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 \".

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

精彩评论

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