export JRE_HOME=/usr/lib/java/jre1.7.0_67 export CLASSPATH=${JRE_HOME}/lib export PATH=${JRE_HOME}/bin:$PATH
解压完成以后,放到/ect/profile文件当中。