At 16:24 04/07/2001 +0300, you wrote:

>Hi,
>
>I wanted to ask if there is a way to add more jars to the classpath
>environment when Tomcat starts ?
>Currently I am linking jar files to the lib directory. Is there
>a way to tell Tomcat to load jars from carious directories ?
>
>N.

The tomcat version have different implementation for that, meanwhile you can :

those will add the jars for every webapps
- simply add your jar to the common CLASSPATH
- edit the script (tomcat.sh, start.sh, or the .bat version) to add you jar 
to the CLASSPATH
(using the -cp:/myjar/toto.jar;/myjar/myfunny.jar;.; ... syntaxe)
- add the jars in $TOMCAT_HOME/lib

those will add the jars to a specific webapp.
- add the jars in $TOMCAT_HOME/webapps/myfunnywebapp/WEB-INF/lib

hope this helps

Reply via email to