环境:centos6.5
jdk1.8.0_111-1.8.0_111-fcs.i586下载链接:http://www.oracle.com/technetwork/java/javase/downloads/index.html
安装之前先检查之前的jdk版本并卸载
[root@localhost local]# rpm -qa | grep jdk
[root@localhost local]# rpm -e jdk1.7.0_111-1.x.x.x-fcs.i586
如果在安装途中报Error: unpack could not create JAR file:
运行下面代码:
[root@localhost local]# yum install libgcc.i686
[root@localhost local]# yum install ld-linux.so.2
安装完后删除之前安装的重新安装一次
查看安装信息
[root@localhost local]# java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode, sharing)
[root@localhost local]# rpm -qa | grep jdk
jdk1.8.0_111-1.8.0_111-fcs.i586
Ctos6.5安装jdk1.8.0_111-1.8.0_111-fcs.i586
原文地址:http://lilingkai.blog.51cto.com/9935648/1884857