IntelliJ Idea 2017.2.5 does not recognise Java 9 SDK
Answered
Hi,
I've just installed Java SDK 9 and fired up IntelliJ IDEA.
I pointed the IntelliJ to JDK 9 folder but the OK button is greyed out.
What am I doing wrong?
It worked fine with JDK 8.
Thanks in advance for any help.
Please sign in to leave a comment.
What JDK version are trying to add? What OS do you use?
JDK 9 on Windows 10.
Just found out that if I use Default Project Structure and point it to JDK 9 it works but
not if I do "Switch IDE Boot JDK".
Maybe I misunderstood what switch between runtimes means.
Thanks.
Do you need to run IDEA under JDK 9 or just to build project with JDK 9?
What's the difference?
Boot JDK is a JDK that is used to run application. Project JDK is a JDK that is used to compile and build projects.
I just want to build projects.
@Yaroslav: Thanks for your help
Project JDK is changed in https://www.jetbrains.com/help/idea/project-structure-dialog.html. You can add a new one in the SDKs tab and then configure your project/modules to use this new JDK in the corresponding tabs.
JDK used to run IntelliJ IDEA itself is completely unrelated.
Thanks again.