Wednesday, December 19, 2012

How to add multiple jars to Java classpath in Linux using wildcards

Add following line to the .bashrc file in the user's home directory.
export CLASSPATH="/home/dulanja/dev/axis2-1.6.2/lib/*:$CLASSPATH"
However, it should be noted that wild-card (*) support is there only for Java6 and above. For previous Java versions, jars should be (tediously) individually added.


No comments: