This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ONE of the FAQs reg. HttpServlet