This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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
 
jQuery in Action, 2nd edition
 
subject: Tomcat 4.1.12 & CLASSPATH
 
Similar Threads
Clarification on init() method of HttpServlet
NoClassDefFoundError
unable to start tomcat 4.1.21
problem running Tomcat
Problem setting enviromental variables