Fix: Java 1.7 rpm from Sun download fails to install with conflict in /etc/init.d/jexec from JDK 1.6

By Partho, Gaea News Network
Wednesday, February 3, 2010

Typical error is of the form:
file /etc/init.d/jexec from install of jdk-2000:1.7.0-ea.i586 conflicts with file from package jdk-2000:1.6.0_07-fcs.i586
In general it is of the form:
file /etc/init.d/jexec from install of jdk-*1.7.0* conflicts with file from package jdk-*1.6.*

The fix is to force the rpm to install despite the conflict. It works fine after that. The command to force installation of the rpm is:

rpm -i –force jdk-1.7*.rpm

Also note that you may have problems extracting the rpm from jdk*rpm.bin file. In that case use unzip on the bin file to extract the rpm file. You may get a warning but the rpm will still extract fine.

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :