We have already discussed about how to install the JDK 7 or JDK 8 in Linux based system. This post describe to you may get an error while installing how to fix it.
Error 1 :
# rpm -ivh jdk-7u60-linux-i586.rpm
Preparing... ################################# [100%]
1:jdk ################################# [100%]
Unpacking JAR files...
rt.jar...
/var/tmp/rpm-tmp.eDCChn: /usr/java/jdk1.7.0_60/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Error: unpack could not create JAR file:
/usr/java/jdk1.7.0_60/jre/lib/rt.jar
Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
jsse.jar...
Solution:
The JDK package require to install ld-linux library files : click here,
Error 2 :
# rpm -ivh jdk-7u60-linux-i586.rpm
Preparing... ################################# [100%]
1:jdk ################################# [100%]
Unpacking JAR files...
rt.jar...
/usr/java/jdk1.7.0_60/bin/unpack200: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
Error: unpack could not create JAR file:.
Solution:
This JDK package requrie libgcc_s.so supporting lib package.
# yum install libgcc_s.so.1
or
# yum install libgcc_*
or
# yum install libgcc_*
Comments (0)