我的一个 linux 实例,我正在尝试使用 rpm 安装 JDK 7。已经安装了 JRE 6,我想安装 JDK 7。当我尝试安装 JDK 7 时,出现以下错误:
# rpm -ivh jdk-7u3-linux-x64.rpm
Preparing... ########################################### [100%]
file /etc/init.d/jexec from install of jdk-2000:1.7.0_03-fcs.x86_64 conflicts with file from package jre-1.6.0_20-fcs.x86_64
我还尝试使用 yum 安装:
# yum install jdk-7u3-linux-x64.rpm
这导致了事务检查错误:
Transaction Check Error:
file /etc/init.d/jexec from install of jdk-2000:1.7.0_03-fcs.x86_64 conflicts with file from package jre-1.6.0_20-fcs.x86_64
有人可以帮我安装这个。我必须保留已经安装的 JRE 6,所以删除它不是我的解决方案。
任何帮助将不胜感激!
谢谢
诺曼 A.