oracle-jdk9-installer 失败,出现 HTTP 404

oracle-jdk9-installer 失败,出现 HTTP 404

尝试安装oracle-jdk9-installer程序包时,我收到 HTTP 404 错误:

Downloading Oracle Java 9...
--2017-06-24 09:15:02--  http://download.java.net/java/jdk9/archive/174/binaries/jdk-9-ea+174_linux-x64_bin.tar.gz
Resolving download.java.net (download.java.net)... 72.247.184.89, 72.247.184.91
Connecting to download.java.net (download.java.net)|72.247.184.89|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-24 09:15:03 ERROR 404: Not Found.

download failed
Oracle JDK 9 is NOT installed.

为什么会这样?如何解决?

$ cat /etc/issue
Ubuntu 17.04 \n \l
$ uname -a
Linux intrepid 4.10.0-24-generic #28-Ubuntu SMP Wed Jun 14 08:14:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

答案1

另一种方法,对我有用的是使用斯凯曼安装,假设你已经安装了 SDKMAN,它很简单:

sdk install java

当时我安装了Java 9.0.0-祖鲁

相关内容