This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet classes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Servlet classes" Watch "Servlet classes" New topic
Author

Servlet classes

Rama Reddy
Greenhorn

Joined: Nov 11, 2001
Posts: 8
Hi,
I am trying to compile a servlet and it is not recognizing
import javax.servlet.*
Could anybody know which files I have to add in the class path.
thanks
Rama
Sagar Bilgi
Ranch Hand

Joined: Apr 26, 2001
Posts: 37
what webserver are you using? If you are using Tomcat 4.0 I have experienced similar problems..see my post in this forum under compiling servlets under Tomcat 4.0.
In case you arent using tomcat 4.0, try locating the servlet.jar file and explicitly mention it in the classpath option when you compile. I have found that it works.
ex javac -classpath "path to servlet.jar" yourfile.java
hope this helps
Sagar
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Servlet classes
 
Similar Threads
servelet project
Help me in send redirct
calling servlet through javascript
Pagging Problem
which book?