我正在尝试在 Ubuntu 16.04 上安装 Java 6 JRE。
正如我以前多次做过的那样,我做了:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
...这给了我这个错误:
Downloading Oracle Java 6...
--2016-11-10 08:51:35-- http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
Resolving download.oracle.com (download.oracle.com)... 146.57.254.26, 146.57.254.43
Connecting to download.oracle.com (download.oracle.com)|146.57.254.26|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin [following]
--2016-11-10 08:51:35-- https://edelivery.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.209.61.60, 2600:1418:3:1a2::2d3e, 2600:1418:3:18b::2d3e
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.209.61.60|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.oracle.com/splash/edelivery/index.html [following]
--2016-11-10 08:51:35-- https://www.oracle.com/splash/edelivery/index.html
Resolving www.oracle.com (www.oracle.com)... 23.209.61.60, 2600:1418:3:1a2::2d3e, 2600:1418:3:18b::2d3e
Connecting to www.oracle.com (www.oracle.com)|23.209.61.60|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2016-11-10 08:51:35 ERROR 503: Service Unavailable.
download failed
有人知道 Oracle 的 Java 6 是否永远消失了吗?
我想现在我要去openjdk 源代码但也许有人知道 Oracle Java 的解决方法?
答案1
是的,除非您与 Oracle 签订了支持合同,否则它将永远消失。
Oracle 不再向公众提供 Java 6,因为早在 2013 年 2 月它就报废了,因此您无法从 Oracle 下载它,除非您与 Oracle 签订了支持合同,这允许您手动下载(登录后)至2018年12月。
我建议使用 Java 8 或更高版本。它仍会获得安全更新,并且可以很好地编译和运行 Java 6 程序。如果您需要编译某些内容以便它可以在 Java 6 JVM 上运行,你只需要添加-target 1.6
到你的javac
行中。