• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pls Help!

 
taash mg
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
i think the only thing u do wrong is in the case of HttpServlet. (its not HTTP its Http)
 
taash mg
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all for ur help especially Roy and Faraz.
Jessica and Amir i will keep ur suggestion in mind

Thanks
Taash
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic