- Create a cpAppend.bat file, just containing:
set CLASSPATH=%CLASSPATH%;%1 - In the runnable batch file, add the following to construct the path dynamically:
set CLASSPATH=
for %%i in (lib\*.jar) do call cpappend.bat %%i
The variable CLASSPATH will now contain all jars in the lib dir
That's it! On Linux/Unix the method is very similar.

No comments:
Post a Comment