QuickTip: Setting CLASSPATH on linux

Posted on Wednesday, August 8, 2007

2


For bash shell:
vhazrati@vhazrati-laptop:~$ export CLASSPATH=$CLASSPATH:/home/vhazrati/bea815/weblogic81/server/lib/weblogic.jar:/home/vhazrati/xebiaprojects/jmsconsole/trunk/target/javax.jms-1.1.jar

For tcsh or csh:
set CLASSPATH = ($CLASSPATH /home/vhazrati/bea815/weblogic81/server/lib/weblogic.jar)

To test

vhazrati@vhazrati-laptop:~$ echo $CLASSPATH

Alternatively you can add the following to your .bashrc

export CLASSPATH=.:/home/vhazrati/bea815/weblogic81/server/lib/weblogic.jar:

Advertisements
Posted in: linux