最佳答案
添加补充渠道/存储库:
yum-config-manager --enable rhel-6-server-supplementary
检查所需的包是否可用并安装:
yum list *-sun-devel
yum install java-1.6.0-sun-devel