File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Pls Help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Pls Help!" Watch "Pls Help!" New topic
Author

Pls Help!

taash mg
Ranch Hand

Joined: Mar 22, 2002
Posts: 106
HI,
I am trying to work on servlets on Tomcat4.0.3 which is running fine but when i try to compile my servlets it gives me errors like HTTPServletResponse) cannot resolve symbol. I think my classpath setting is not proper. Can anyone pls help asap
Here's my classpath setting

CHEERS
TAASH
SCJP2


Cheers<p>Taash<br />SCJP2
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
the easiest thing to do is to take that servlet.jar file and just put it in your:
javadirectory/jre/lib/ext
all the jar classes put in the ext directory will always be recognized by the compiler.
Faraz Masood
Ranch Hand

Joined: May 03, 2002
Posts: 55
hi
i am also encountering the same problem
and here is my way of resolving that
start tomcat
and then residing in the /classes(or your own webapp directory) again specify the classpath of the servlet.jar that is
set classpath=d:\tomcat\common\lib\servlet.jar (or wat ever the path may be)
hope this will help
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

taash-
Just a suggestiong -- but you're more likely to get help on your problem if you give it a descriptive title. Instead of "Pls Help!" try something like "Problem compiling servlets".
Welcome to the JavaRanch! I hope you find it a very useful site.
Amir Kamran
Ranch Hand

Joined: Apr 21, 2002
Posts: 48
Hello!
i think the only thing u do wrong is in the case of HttpServlet. (its not HTTP its Http)
taash mg
Ranch Hand

Joined: Mar 22, 2002
Posts: 106
Thanks all for ur help especially Roy and Faraz.
Jessica and Amir i will keep ur suggestion in mind

Thanks
Taash
 
GeeCON Prague 2014
 
subject: Pls Help!