Charles Bell
Posts: 519
Nickname: charles
Registered: Feb, 2002
|
|
Re: multiple .jar files in CLASSPATH ?
|
Posted: Aug 31, 2003 7:34 PM
|
|
You could also create an environment variable which contains all the jar file names separated by semicolons, and then include that environment variable in your classpath.
I've seen several java applications frequently do this such as TOMCAT_HOME, CATALINA_HOME, MYAPPLICATION, etc.
MYAPPLICATION=c:\j2dk1.4.2\myapp\lib\file1.jar;c:\j2dk1.4.2\myapp\lib\fil e2.jar;c:\j2dk1.4.2\myapp\lib\file3.jar;c:\j2dk1.4.2\myapp\lib\file4.jar;c:\j2dk 1.4.2\myapp\lib\file5.jar;c:\j2dk1.4.2\myapp\lib\file6.jar;c:\j2dk1.4.2\myapp\li b\file7.jar;c:\j2dk1.4.2\myapp\lib\file8.jar;c:\j2dk1.4.2\myapp\lib\file9.jar;c: \j2dk1.4.2\myapp\lib\file10.jar; CLASSPATH=%CLASSPATH%;MYAPPLICATION;
Another standard way is to copy these jar file into the jre\lib\ext folder where no class path change will be needed.
|
|