wood burning stoves 2.0*
The moose likes Servlets and the fly likes ONE of the FAQs reg. HttpServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ONE of the FAQs reg. HttpServlet" Watch "ONE of the FAQs reg. HttpServlet" New topic
Author

ONE of the FAQs reg. HttpServlet

Suma MM
Ranch Hand

Joined: Apr 30, 2001
Posts: 31
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

Joined: Jan 08, 2001
Posts: 2164
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

Joined: Apr 30, 2001
Posts: 31
Thank You Axel. Will check out the links.
-S
 
 
subject: ONE of the FAQs reg. HttpServlet
 
Similar Threads
Package javax.servlet, javax.servlet.http does not exist
Doubt regarding one of Ethnuwhere questions?
Error while compiling
compiling and deploying into Tomcat
Small doubt..Servlets Naming Convention