1 export JAVA_HOME=/opt/jdk1.6.0_45 2 export JRE_HOME=$JAVA_HOME/jre 3 export CLASSPATH=$JAVA_HOME/lib/ 4 export PATH=$PATH:$JAVA_HOME/bin