Check 32 or 64 bit using the below command and download the source accordingly.
[root@machine1 gdp]# getconf LONG_BIT
32
[root@machine1 gdp]# wget jdk-7u17-linux-i586.tar.gz
We can download the java software from oracle website
[root@machine1 gdp]# tar -zxvf jdk-7u17-linux-i586.tar.gz
Edit your .bash_profile and add the path so that it will automatically load when the machine starts.
.bash_profile
export JAVA_HOME=/usr/local/gdp/jdk1.7.0_17
export PATH=$PATH:$JAVA_HOME/bin
export PATH
[root@machine1 ~]# /usr/local/gdp/jdk1.7.0_17/bin/java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)
[root@machine1 ~]# source .bash_profile
You have new mail in /var/spool/mail/root
[root@machine1 ~]# java -version
java version "1.7.0_19"
OpenJDK Runtime Environment (rhel-2.3.9.1.el5_9-i386)
OpenJDK Server VM (build 23.7-b01, mixed mode)
[root@machine1 gdp]# getconf LONG_BIT
32
[root@machine1 gdp]# wget jdk-7u17-linux-i586.tar.gz
We can download the java software from oracle website
[root@machine1 gdp]# tar -zxvf jdk-7u17-linux-i586.tar.gz
Edit your .bash_profile and add the path so that it will automatically load when the machine starts.
.bash_profile
export JAVA_HOME=/usr/local/gdp/jdk1.7.0_17
export PATH=$PATH:$JAVA_HOME/bin
export PATH
[root@machine1 ~]# /usr/local/gdp/jdk1.7.0_17/bin/java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)
[root@machine1 ~]# source .bash_profile
You have new mail in /var/spool/mail/root
[root@machine1 ~]# java -version
java version "1.7.0_19"
OpenJDK Runtime Environment (rhel-2.3.9.1.el5_9-i386)
OpenJDK Server VM (build 23.7-b01, mixed mode)
No comments:
Post a Comment