Jar files fro classpath variable
Title: Jar files fro classpath variable 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.
Re: Jar files fro classpath variable
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
Re: Jar files fro classpath variable
Title: Jar files fro classpath variable You can modify your tomcat.sh ( or tomcat.bat on windows) file to have your jars in the classpath variable. I myself work on a windows machine, but I guess yours is some unix thing. I guess what I am saying should work for you, though I can't verify it. In your tomcat.sh, just before this line export CLASSPATH you can add your own jars to the classpath. Which should look something like, CLASSPATH=${CLASSPATH}:../myjars/app.jar export CLASSPATH - Original Message - From: Nino Uziel To: '[EMAIL PROTECTED]' Sent: Wednesday, July 04, 2001 6:54 PM Subject: Jar files fro classpath variable 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.