# rpm -qa | grep jdk
java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86
# yum remove java-1.6.0-openjdk-1.6.0.0-1.48.1.11.3.el6_2.x86
# getconf LONG_BIT
32
32
# cd /usr/loca/src/
# wget http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.tar.gz?AuthParam=1390533490_ff7d5fa1df9abbca467009c857388323
# tar xvfz jdk-7u51-linux-i586.tar.gz\?AuthParam\=1390533490_ff7d5fa1df9abbca467009c857388323
#mkdir /usr/local/java
# mv jdk1.7.0_51 jdk
# mv jdk /usr/loca/java/
# vi /etc/profile
### JAVA by kikcingplay ###
export JAVA_HOME=/usr/local/java/jdk
export JRE_HOME=/usr/local/java/jdk/jre
export PATH=$PATH:$JAVA_HOME/bin
# source /etc/profile
#java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Server VM (build 24.51-b03, mixed mode)
댓글 없음:
댓글 쓰기