Error: unpack could not create JAR file:

简介:

[root@test ~]# rpm -ivh jdk-7u55-linux-i586.rpm 
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
        rt.jar...
/var/tmp/rpm-tmp.dTi5eF: /usr/java/jdk1.7.0_55/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
Error: unpack could not create JAR file:

        /usr/java/jdk1.7.0_55/jre/lib/rt.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
        jsse.jar...
/var/tmp/rpm-tmp.dTi5eF: /usr/java/jdk1.7.0_55/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
Error: unpack could not create JAR file:

        /usr/java/jdk1.7.0_55/jre/lib/jsse.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
        charsets.jar...
/var/tmp/rpm-tmp.dTi5eF: /usr/java/jdk1.7.0_55/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
Error: unpack could not create JAR file:

        /usr/java/jdk1.7.0_55/jre/lib/charsets.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
        tools.jar...
/var/tmp/rpm-tmp.dTi5eF: /usr/java/jdk1.7.0_55/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
Error: unpack could not create JAR file:

        /usr/java/jdk1.7.0_55/lib/tools.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
        localedata.jar...
/var/tmp/rpm-tmp.dTi5eF: /usr/java/jdk1.7.0_55/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
Error: unpack could not create JAR file:

        /usr/java/jdk1.7.0_55/jre/lib/ext/localedata.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
        jfxrt.jar...
/var/tmp/rpm-tmp.dTi5eF: /usr/java/jdk1.7.0_55/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
Error: unpack could not create JAR file:

        /usr/java/jdk1.7.0_55/jre/lib/jfxrt.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
        plugin.jar...
/var/tmp/rpm-tmp.dTi5eF: /usr/java/jdk1.7.0_55/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
Error: unpack could not create JAR file:

        /usr/java/jdk1.7.0_55/jre/lib/plugin.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
        javaws.jar...
/var/tmp/rpm-tmp.dTi5eF: /usr/java/jdk1.7.0_55/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
Error: unpack could not create JAR file:

        /usr/java/jdk1.7.0_55/jre/lib/javaws.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.
        deploy.jar...
/var/tmp/rpm-tmp.dTi5eF: /usr/java/jdk1.7.0_55/bin/unpack200: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
Error: unpack could not create JAR file:

        /usr/java/jdk1.7.0_55/jre/lib/deploy.jar

Please refer to the Troubleshooting section of the Installation Instructions
on the download page.


原因
64位系统中安装了32位程序。

解决方法
运行以下命令:
[root@test ~]# yum install libgcc.i686

[root@test ~]# yum install ld-linux.so.2

再重新安装JDK


      本文转自ling118 51CTO博客,原文链接:http://blog.51cto.com/meiling/1836442,如需转载请自行联系原作者







相关文章
|
4月前
|
Java Linux Shell
【Azure 应用服务】部署Jar到App Service for Linux,因启动命令路径配置错误而引起:( Application Error 问题
【Azure 应用服务】部署Jar到App Service for Linux,因启动命令路径配置错误而引起:( Application Error 问题
|
SQL Java HIVE
【解决方案】Hive启动时报错 Logging initialized using configuration in jar:file:/usr/local/apache-hive-1.1.0-bin
【解决方案】Hive启动时报错 Logging initialized using configuration in jar:file:/usr/local/apache-hive-1.1.0-bin
1455 0
【解决方案】Hive启动时报错 Logging initialized using configuration in jar:file:/usr/local/apache-hive-1.1.0-bin
|
IDE Java 开发工具
解决IntelliJ IDEA报错Error:Cannot determine path to ‘tools.jar‘ library for 17 (D:/JAVA)
解决IntelliJ IDEA报错Error:Cannot determine path to ‘tools.jar‘ library for 17 (D:/JAVA)
1591 0
|
Java Maven Android开发
解决警告: Failed to scan JAR[...] java.util.zip.ZipException: error in opening zip file
解决警告: Failed to scan JAR[...] java.util.zip.ZipException: error in opening zip file
|
7月前
|
存储 Java
Java【报错 01】Unable to open nested jar file 问题说明及解决方法(仅针对压缩工具 WinRAR)
Java【报错 01】Unable to open nested jar file 问题说明及解决方法(仅针对压缩工具 WinRAR)
1464 0
|
算法 IDE Java
springBoot导入本地jar并且要求通过maven打包到项目的jar中|Unable to open nested jar file 'BOOT-INF/lib/xxxxxx.jar'
springBoot导入本地jar并且要求通过maven打包到项目的jar中|Unable to open nested jar file 'BOOT-INF/lib/xxxxxx.jar'
|
SQL 安全 Java
6. 成功解决:Driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' could not be found, make sure the 'MS SQL Server (Native)' driver (jar file) is installed.
在使用 Kettle(Spoon) 工具创建 SQL Server 数据库连接时,提示:Driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' could not be found, make sure the 'MS SQL Server (Native)' driver (jar file) is installed. com.microsoft.sqlserver.jdbc.SQLServerDriver
1590 1
|
Java
IDEA 启动服务报错:Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun 解决方案
IDEA 启动服务报错:Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun 解决方案
2448 1
|
应用服务中间件
Error running ‘Tomcat 9.0.33‘: Can‘t find catalina.jar
Error running ‘Tomcat 9.0.33‘: Can‘t find catalina.jar
292 1
|
Java Docker 容器
docker部署jar file
docker部署jar file
96 0