• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet cannot be resolved.

 
                              
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am having a problem with Eclipse. When I try to code servlets and I import javax.servlet Eclipse says that it cannot be resolved. How can I get right. Thanks in advance.
Khatmal
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add a JAR file (one that contains javax.servlet.* stuff) to your project's classpath.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34229
341
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This would be the j2ee.jar or servlets.jar that comes with your application/web server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic