Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javax.servlet

Status
Not open for further replies.

greenr02

Programmer
Mar 26, 2002
6
0
0
US
I want to run servlets on my PC at home. I have installed tomcat and java software. I've edited my Path variable, and det a JAVA_HOME variable. Where do I download the javax.servet class files to? Do I need to download them at all? I have them in the ROOT of the tomcat, but when I compile, it tells me that javax.servlet does not exist when I try and import. My PC does not have a classpath variable, so how do I point it to the servlet.jar file if that's what I need to do? ALso, any tips on getting servlets to run in tomcat once I am properly importing the javax files???
Many thanks.
 
Green,

You need to set the CLASSPATH environment variable
before compiling. Your own .CLASS files can be included
either by including the directory that contains them
in CLASSPATH or by putting them into a .JAR file and
including that .JAR file in CLASSPATH.

For example, if you put the SERVLET.JAR file in
C:\JAVA\LIB and your own class files in C:\JAVA\CLASSES

SET CLASSPATH=C:\JAVA\CLASSES;C:\JAVA\LIB\SERVLET.JAR

Hope this helps.

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top