OpenJDK-9 JDK在Ubuntu 17.10上没有出现

时间:2017-12-18 19:22:05

标签: linux ubuntu openjdk java-9 ubuntu-17.10

我正在尝试在ubuntu上安装java 9 jre和jdk。但我找不到它。我安装了所有的包: ii openjdk-9-jdk:amd64 9~b181-4 amd64 OpenJDK Development Kit (JDK) ii openjdk-9-jdk-headless:amd64 9~b181-4 amd64 OpenJDK Development Kit (JDK) (headless) ii openjdk-9-jre:amd64 9~b181-4 amd64 OpenJDK Java runtime, using Hotspot JIT ii openjdk-9-jre-headless:amd64 9~b181-4 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)

Java -version返回: openjdk version "9-Ubuntu" OpenJDK Runtime Environment (build 9-Ubuntu+0-9b181-4) OpenJDK 64-Bit Server VM (build 9-Ubuntu+0-9b181-4, mixed mode)

javac -version: javac 9-Ubuntu

但是当我尝试在新的Intellij中创建JDK时: enter image description here

然后我得到错误:

enter image description here

我检查了/ usr / lib / jvm /和

的内容

对于java-8-openjdk-amd64: drwxr-xr-x 7 root root 4096 gru 17 16:16 ./ drwxr-xr-x 4 root root 4096 gru 18 18:11 ../ lrwxrwxrwx 1 root root 22 paź 24 00:43 ASSEMBLY_EXCEPTION -> jre/ASSEMBLY_EXCEPTION drwxr-xr-x 2 root root 4096 gru 17 16:16 bin/ lrwxrwxrwx 1 root root 41 paź 24 00:43 docs -> ../../../share/doc/openjdk-8-jre-headless/ drwxr-xr-x 3 root root 4096 gru 17 16:16 include/ drwxr-xr-x 5 root root 4096 gru 17 16:16 jre/ drwxr-xr-x 3 root root 4096 gru 17 16:16 lib/ drwxr-xr-x 4 root root 4096 gru 17 16:16 man/ lrwxrwxrwx 1 root root 20 paź 24 00:43 src.zip -> ../openjdk-8/src.zip lrwxrwxrwx 1 root root 22 paź 24 00:43 THIRD_PARTY_README -> jre/THIRD_PARTY_README

对于java-9-openjdk-amd64: drwxr-xr-x 9 root root 4096 gru 18 18:11 ./ drwxr-xr-x 4 root root 4096 gru 18 18:11 ../ drwxr-xr-x 2 root root 4096 gru 18 18:11 bin/ drwxr-xr-x 4 root root 4096 gru 18 18:11 conf/ lrwxrwxrwx 1 root root 41 sie 24 19:15 docs -> ../../../share/doc/openjdk-9-jre-headless/ drwxr-xr-x 3 root root 4096 gru 18 18:11 include/ drwxr-xr-x 2 root root 4096 gru 18 18:11 jmods/ drwxr-xr-x 77 root root 4096 gru 18 18:11 legal/ drwxr-xr-x 5 root root 4096 gru 18 18:11 lib/ drwxr-xr-x 4 root root 4096 gru 18 18:11 man/ lrwxrwxrwx 1 root root 20 sie 24 19:15 src.zip -> ../openjdk-9/src.zip

我的问题是出了什么问题?要安装我使用过的java-9:

  

sudo apt install openjdk-9-jre openjdk-9-jdk

1 个答案:

答案 0 :(得分:0)

我在想法跟踪器上发现了一个问题 https://youtrack.jetbrains.com/issue/IDEA-178743 这是固定的。用户还建议使用x86_64-版本。试试吧。(source)