Friday 20 June 2014

JAVA install conflict between java6 and java7 during instalation SOLVED

I had situation today considering installation of new java version 7 on server that already was running java 6.

Java that was running was 32bit and I wanted to use 64bit java and overcome Java memory issues that is following 32bit Java.

Java that was running was


#java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Server VM (build 19.0-b09, mixed mode)
 

and package name was
#rpm -qa |grep jdk

jdk-1.6.0_23-fcs 

So I downloaded latest Java 7 64bit package(jdk-7u60-linux-x64.rpm) and when I tried to installed it
 
[root]# rpm -ivh --test jdk-7u60-linux-x64.rpm
Preparing...                ########################################### [100%]
 file /etc/init.d/jexec from install of jdk-1.7.0_60-fcs.x86_64 conflicts with file from package jdk-1.6.0_23-fcs.i586
 

I moved file /etc/init.d/jexec to different location but same issue occurred.

Because I did not need to preserve old JAVA installation, I removed it

#rpm -e jdk-1.6.0_23-fcs 

and then installed new one with no problems!

Now I have

# java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

No comments: