1.下载安装jdk
2.卸载旧版的
#rpm -qa|grep java
#rpm -ev java-1.4.2-gcj-compat-1.4.2.0-27jpp
#rpm -ev gcc-java-3.4.6-3
3.修改/etc/profile
#vi /etc/profile
export JAVA_HOME=/usr/local/jdk1.5.0_05/
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH USER LOGNAME MAIL HOSTNAME NPUTRC JAVA_HOME CLASSPATH
4.
#source /etc/profile
阅读(890) | 评论(0) | 转发(0) |