简体   繁体   English

为 Java SDK 9 更新 IntelliJ (macOS)

[英]Update IntelliJ (macOS) for Java SDK 9

I just downloaded Java SDK 9 for Mac and installed it: Console output:我刚刚为 Mac 下载了 Java SDK 9 并安装了它:控制台输出:

felixbreuer$ java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

But when I wanna do a new Project or change the Java SDK Version of my current Project in IntelliJ I can only choose the Module Java 1.8 ... Anybody knows how I can upgrade this ?但是当我想在 IntelliJ 中创建一个新项目或更改当前项目的 Java SDK 版本时,我只能选择 Module Java 1.8 ...有人知道我如何升级它吗? I bet its easy but I can't find any solutions on the web... they only show the new features for java 9 in IntelliJ to its 100% supported.我敢打赌这很容易,但我在网上找不到任何解决方案......他们只显示了 IntelliJ 中 Java 9 的新功能,以使其 100% 受支持。

You need to add the new JDK, in order to let IntelliJ make use of it.您需要添加新的 JDK,以便 IntelliJ 使用它。

Project Settings -> Project SDK -> New -> Add new JDK -> Select the path to JDK9's Content/Home

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM