How to set classpath on linux

pls help me
[25 byte] By [bhaskarunix] at [2007-9-30 5:02:02]
# 1
Type something this at the command prompt:export CLASSPATH=/what/it/might/be:/var/or/this:/var/or/that:/home/user/lib/myapps.jar
BIJ001 at 2007-7-1 15:46:40 > top of Java-index,Administration Tools,Sun Connection...
# 2

Hi,

if you don't want to type the classpath everytime you open a shell you can write in your .profile file in your home directory the line export CLASSPATH=/whatever. Or if you want it to be valid for all user you write the same line in /etc/bash.bashrc or /etc/bash.bashrc.local, but this may vary depending on your distribution.

abenstex at 2007-7-1 15:46:40 > top of Java-index,Administration Tools,Sun Connection...
# 3
Or you can put this line into a wrapper script.
BIJ001 at 2007-7-1 15:46:40 > top of Java-index,Administration Tools,Sun Connection...