如题所述
å®è£
jdk1.6å°/usr/javaä¸
ï¼1ï¼å°jdk-6u45-linux-x64.binæ·è´å°/usr/java
ï¼2ï¼Cd /usr/java
ï¼3ï¼Chmod 755 jdk-6u45-linux-x64.bin
ï¼4ï¼./jdk-6u45-linux-x64.bin
ï¼5ï¼é ç½®ç¯å¢åé vi /etc/promfile å¨æ件çæåå å ¥
TMOUT=900
EDITOR=vi
export JAVA_HOME=/usr/java/jdk1.6.0_45
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar
export JRE_HOME=$JAVA_HOME/jre
export PATH=$JAVA_HOME/bin:$PATH
export EDITOR
export TMOUT
ï¼6ï¼Source /etc/promfile
Java -versionæ¥çjdkä¿¡æ¯
ä¹åæ»ç»ç
ï¼1ï¼å°jdk-6u45-linux-x64.binæ·è´å°/usr/java
ï¼2ï¼Cd /usr/java
ï¼3ï¼Chmod 755 jdk-6u45-linux-x64.bin
ï¼4ï¼./jdk-6u45-linux-x64.bin
ï¼5ï¼é ç½®ç¯å¢åé vi /etc/promfile å¨æ件çæåå å ¥
TMOUT=900
EDITOR=vi
export JAVA_HOME=/usr/java/jdk1.6.0_45
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar
export JRE_HOME=$JAVA_HOME/jre
export PATH=$JAVA_HOME/bin:$PATH
export EDITOR
export TMOUT
ï¼6ï¼Source /etc/promfile
Java -versionæ¥çjdkä¿¡æ¯
ä¹åæ»ç»ç
温馨提示:答案为网友推荐,仅供参考