Friday, December 2, 2011

Update Java in RedHat 5.5 /RHEL

Step to update update in Rehdat 5.5 32 bit.

1) Check current Java verison.

[root@localhost ~]# java --version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


2) Default Java package in RedHat is

java-1.4.2-gcj-compat-1.4.2.0-40jpp.115



Download latest JDK.

http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html

Pkg name :- jdk-7u1-linux-i586.rpm


Install the pkg

#rpm -Uvh jdk-7u1-linux-i586.rpm


Then just create symbolic link which point to new java installation.


[root@localhost bin]# ln -s /usr/java/jdk1.7.0_01/bin/java /usr/bin/java

Now test your Java version.


[root@localhost bin]# java -version
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing)


That all,now next post Installing JBoss.

0 comments: