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.