• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem With Servlet Compliling

 
vinothk khannan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have j2sdk1.4... and i could not compile my servlet
it says htttpservlet class not found
i have apache tomcat for my web page
i have jsdk 2.0 (servlet runner)
Please help me out
 
Jasmine kaur
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Just see have you added servlet.jar file in your classpath or not and maybe thats why when you compile it couldnt find the classes.
So just cheack again .
Do ask if you find more problem.
Thanks,
jasmine
 
Marcus Howarth
Ranch Hand
Posts: 38
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of questions to help you.
which .jar file contains HttpServlet?
where would tomcat keep those .jars?
when you compile, how are you letting the compiler know where to look for all the classes you reference? (hint: classpath)
HTH - let us know how you get on, (
I'm not giving you a straight answer because I reckon it's better to understand rather than get a quick fix)
 
Marcus Howarth
Ranch Hand
Posts: 38
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops - Jasmine you beat me too it - and there was me trying to be clever
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic