Servlets & Servers
Visit us here and you will find
much more tips!
Receive our newsletter with new tips! Almost 6,000 subscribers (by June 2001) can not be wrong!
They read our tips every week!
To subscribe to The Java FAQ Daily send empty e mail to:
javafaq tips subscribe@topica.com
or visit at:
http://www.topica.com/lists/javafaq tips/
Servlets & Servers
Q: The first thing is that i don t know how to do to create Servlets ... no more
precisely, I don t know how to compile it !!
It says that it doesn t find the packages (javax I think) ...
Plz, could someone tell me exactly what I should put on my environment variables
(Class_path, path, java_home etc...)
Answer: Well, I also started to learn about servlets. I recently downloaded JDK1.3.0
and Apache Tomcat 3.1.0 .
I set the following paths.
CLASSPATH = %TOMCAT_HOME%\webapps\examples\WEB INF\classes\work;
(my working directory)
TOMCAT_HOME =
C:\JDK\tomcat
;
(or wherever you installed tomcat)
PATH=%TOMCAT_HOME%\bin ;
appended tomcat bin path to the path statement)
I also copied the servlet.jar found in the tomcat bin directory to both:
C:\jdk\jre\lib\ext\
C:\Program Files\JavaSoft\JRE\1.3\lib\ext\
I hope this helps....
Gregory Pedder
Q: Any simple server I can download to run my java servlets...
Answer:
Try Resin,
www.caucho.com
Try tomcat from http://jakarta.apache.org pure Java,
servlets 2.2, good stuff! Tomcat is good. It s not fast, but it s very easy to setup and
good solution for development. Since most heay duty servers do implement SUN
specification, one can migrate application in no time.
file:///F|/a_jsite/350_tips/servlets_servers.htm (1 of 7) [2001 07 08 11:24:58]
footer
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved