问题描述
有人尝试在MacOS上的IntelliJ上设置JDK 10吗?
Has someone tried setting up JDK 10 on IntelliJ in MacOS?
尝试这样做时,我收到消息为
所选目录是不是JDK的有效主页。
When trying to do so, I am getting message as"the selected directory is not a valid home for JDK".
我安装了oracle为MacOS提供的JDK 10
I have installed JDK 10 provided by oracle for MacOS
JDK安装我机器上的路径是
/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
JDK intallation path on my machine is/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
推荐答案
对Java 10的正确支持需要IntelliJ IDEA 2018.x版本。 IntelliJ IDEA 2017.x版本可能无法正确检测Java安装路径。
Proper support for Java 10 requires IntelliJ IDEA 2018.x version. IntelliJ IDEA 2017.x versions may not detect Java installation path properly.
这篇关于在IntelliJ IDEA中设置JDK 10:所选目录不是JDK的有效主目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!