• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ONE of the FAQs reg. HttpServlet

 
Suma MM
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
I wanted to execute a simple servlet which extends HttpServlet. The compiler is unable to find the package javax! (I know i've messed something badly).
Ok now, I have downloaded jdk1.3.1_02. I dont see javax package anywhere. Need i download something else in order to "get" the javax package? And if so, how should the path and classpath variables be set?
I am a newbie to servlets. And moreover, i did try to "search" for an answer from the previously asked questions on this forum..but failed to!
I wud appreciate any help.
Thanks in advance.
-S
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. You know you need a server to run servlets (?). Try tomcat. You get a very good step by step guide here: http://javaboutique.internet.com/tutorials/Tomcat/
2. To compile servlets you need to include a file called servlet.jar in your classpath. Follow the instruction in the above mentioned article. On JavaRanch there is a specialized forum regarding tomcat:
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&f=56
Axel
Hope it Helps.
 
Suma MM
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Axel. Will check out the links.
-S
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic