I need to uninstall Java jdk1.6.0.27 from RHEL 5.7 and then install another version jre-7u40-linux-x64.rpm.
The firs thing I did was to find out the current java version installed using the
java -version
command and the output is "java version "1.6.0_27"
".
After that I tried to check the previews version of java with the command:
rpm -qi jdk
The output is "package jdk is not installed"
After installing the package jre-7u40-linux-x64.rpm in the /usr/java
directory there are two java packages.
The output of the ls
command on /usr/java
is:
default jdk1.6.0_27 jre1.7.0_40 jre-7u40-linux-x64.rpm latest
.
when I run the command "alternatives --config java
" the output is:
*+ 1 /usr/java/latest/bin/java
I am new to RHEL and I need some help to understand the situation.
To conclude I need some help to remove the previews jdk1.6.0.27 and to install jre1.7.0_40.
Thank you in advance for your help! Best regards, Claudio