aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Servlet cannot be resolved. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Servlet cannot be resolved." Watch "Servlet cannot be resolved." New topic
Author

Servlet cannot be resolved.

Khatmal Khatmal
Greenhorn

Joined: Apr 04, 2006
Posts: 4
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
You need to add a JAR file (one that contains javax.servlet.* stuff) to your project's classpath.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29241
    
139

This would be the j2ee.jar or servlets.jar that comes with your application/web server.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet cannot be resolved.
 
Similar Threads
Porting application in JDK1.1 to JDK1.3
Error in program
Building problems
The type javax.servlet.http.HttpServletRequest cannot be resolved. iIt is ndirectly referenced...
Working with SimpleDateFormat and DAte classes