wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat 4.1.12 & CLASSPATH Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 4.1.12 & CLASSPATH" Watch "Tomcat 4.1.12 & CLASSPATH" New topic
Author

Tomcat 4.1.12 & CLASSPATH

Shilpa Bhargava
Ranch Hand

Joined: Sep 15, 2002
Posts: 39
hi ,
Is this right ..Tomcat 4.1.12 does not read the classpath variable ???
If I place my servlet.jar and classes12.jar in tomcat/common/lib i do not need to explicitly put them in my classpath ...
Please correct me if I am wrong
Thanks,
Shilpa
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Shilpa Bhargava:
hi ,
Is this right ..Tomcat 4.1.12 does not read the classpath variable ???
If I place my servlet.jar and classes12.jar in tomcat/common/lib i do not need to explicitly put them in my classpath ...
Please correct me if I am wrong
Thanks,
Shilpa

You don't need to explicitly place the servlet.jar in tomcat 4.1.12,its already got placed at correct directory. Just set the JAVA_HOME to jdk1.3 or jdk1.4 directroy location and start the tomcat using startup script under bin directory of tomcat.
you will need servlet.jar in ur classpath only while compiling new servlet program.


Spritle Software Blogs
balakrishna
Greenhorn

Joined: Jun 12, 2000
Posts: 11
Originally posted by Shilpa Bhargava:
hi ,
Is this right ..Tomcat 4.1.12 does not read the classpath variable ???
If I place my servlet.jar and classes12.jar in tomcat/common/lib i do not need to explicitly put them in my classpath ...
Please correct me if I am wrong
Thanks,
Shilpa

Hi
There is no need to keep servlet.jar ( if it is tomcat's). If your class files are jarred into jar called servlet.jar please change the name
Then this jar+ any additional jars required for the app( like classes.jar) into %Webroot%/WEB-INF/lib directory.
You can mail me back or keep a message in case of trouble
Balakrishna
Please try
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat 4.1.12 & CLASSPATH