1.tar -xzvf jdk-7u45-linux-x64.tar.gz
2.vi /etc/profile
JAVA_HOME=/data/app/jdk1.7.0_45
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CLASSPATH
export JAVA_HOME
export PATH
export CLASSPATH
日期:2014-05-16 浏览次数:20619 次
1.tar -xzvf jdk-7u45-linux-x64.tar.gz
2.vi /etc/profile
JAVA_HOME=/data/app/jdk1.7.0_45
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CLASSPATH
export JAVA_HOME
export PATH
export CLASSPATH