IN THE FILE: /etc/profile
add:
execute: [b]source [/b]/etc/profile
add:
export JAVA_HOME=/usr/local/java/jdk1.6.0_03
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
execute: [b]source [/b]/etc/profile