Search This Blog

Thursday, October 16, 2008

How to set a classpatch for all the .jar files in a directory

On UNIX
C=.; for i in *.jar; do C=$C:$i; done
echo $C
java -cp $C org.jgroups.demos.Draw

On Windows