I don't know about "class path" but I just looked up the docs for when I installed java, and I used "JAVA_HOME"
where is java unpacked to? i'll call it /usr/java for this demo
try typing that in while at the bash prompt and see if it works. If yes, you can put something similar in you /etc/bashrc or something.