• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pls Help!

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic