我在关注这个 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: not found”的解决方案,但找不到解决方案。关于如何解决此 ELF 问题的任何想法?
最佳答案
在 Ubuntu 上安装 Oracle JDK(和其他软件)的最佳方法可能是使用标准的 Debian 工具,例如 apt-get 或 synaptic。 为此,您必须添加 WebUpd8 团队 PPA(更多详细信息 here)。
关于ubuntu - Ubuntu 中的 Sun JDK 6 安装失败,出现 "ELF: not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16798493/