You may get an error, "unpack could not create JAR file" while installing JDK package in your system,

# rpm -ivh jdk-7u60-linux-i586.rpm


Error 1 :


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 :

Install  libgcc_s.so.1 package 

#  yum update

#  yum install libgcc_s.so.1​

If you are using Ubuntu, Debian operating system or similar distributions,

# apt-get install libgcc_s.so.1


Error 2 :


/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:

Solution:

Install the package : glibc.i686