I advise against setting CLASSPATH in .bashrc, doing so will almost guarantee that you will have some unwanted surprises. It is better to set it within a script taht passes the value as the -cp entry on the
java command line itself. Also if you do that you can use ps to view the command line used to run the java executable to verify that you got it correct (which is handy if a script start the app)