Linux jdk1.7安装

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

你可能感兴趣的:(linux)