有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

IntelliJ不了解Java9ea上的java库

我正在使用jdk9 ea 149,并创建了一个示例javafx应用程序

IntelliJ不理解java库,它以红色显示所有导入语句,并且它们都是灰色的。甚至对于java。util。列表,java。util。ArrayList它也有同样的问题

我可以在外部编译表单,但无法编译IntelliJ 2016.3.2终极版的代码

看起来我们需要在IntelliJ项目中添加一些库,但是使用java9 build 149jigsaw,我不知道如何做到这一点

Sample JavaFx Code On Intellij using jdk9-ea

我正在使用实验功能,但它仍然不理解导入语句-请参阅下面的intellij设置

IntelliJ版本:IntelliJ 2016.3.2最终版 Java版本:Java 9-ea版本:149 enter image description here


共 (2) 个答案

  1. # 1 楼答案

    IntelliJ IDEA的最新版本2017.1支持jdk 9

  2. # 2 楼答案

    IntelliJ IDEA 2016.3.1 is Out所述:

    Speaking of JDK 9, IntelliJ IDEA 2016.3 won’t support builds 148 and up because they contain code that breaks things. Of course, we’re working to resolve this, and will support the latest JDK 9 builds in 2017.1 (its EAP may well start within the next few weeks).

    IntelliJ IDEA 2017.1: Java 9, Kotlin 1.1, Spring, Gradle, JavaScript, Go and more中,它说:

    The latest builds of JDK 9 are fully supported, with assisted project import and coding assistance for editing module declarations.

    因此,如果您使用的是Java 9 build 148或更高版本,则需要使用2017.1或更高版本

    或者,如果需要使用较旧版本的IntelliJ,请降级到Java9Build147或更低版本