在Ubuntu中安装Sun JDK 6失败,出现“ELF:not found”

时间:2013-05-28 17:56:17

标签: ubuntu java

我正在关注此doc并在我的Ubuntu服务器v11中安装Sun JDK 6.

root@li339-83:~# wget --no-check-certificate --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F" http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
root@li339-83:~# chmod u+x jdk-6u45-linux-x64.bin
root@li339-83:~# ./jdk-6u45-linux-x64.bin
Unpacking...
Checksumming...
Extracting...
./install.sfx.331: 1:ELF: not found
./install.sfx.331: 2: Syntax error: ")" unexpected
Failed to extract the files.  Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.

我试图找到" ELF的解决方案:未找到"但无法找到解决方案。如何解决这个ELF问题?

2 个答案:

答案 0 :(得分:2)

在Ubuntu上安装Oracle JDK(和其他软件)的最佳方法可能是使用标准的Debian工具,如apt-get或synaptic。 为此,您必须添加WebUpd8团队PPA(更多详细信息here)。

答案 1 :(得分:1)

在我看来,我不确定我是否正确,如果您使用的是64位系统并尝试安装严格32位的内容,例如32位JDK,那么您需要下载并安装32位elf库到你的Ubuntu linux系统。这可能是因为,如果您使用的是64位系统,那么这些库是不必要的。如果您手动下载它们,32位精灵库(来自32位版本的Ubuntu)仍然可用。我遇到了类似的问题,试图在一年前的64位CentOS系统上安装32位WebSphere演示。