IntelliJ IDEA "The selected directory is not a valid home for JDK"
For anyone on a Mac with a homebrew-installed openjdk, you need to use the directory under libexec
: <openjdk11_directory>/libexec/openjdk.jdk/Contents/Home
.
Thanks to https://intellij-support.jetbrains.com/hc/en-us/community/posts/360007751379/comments/360001513560.
This error occurs because if you choosing the path deep in JDK or JRE. The exact path that should be chosen is in my case 64 bit
C:\Program Files\Java\jdk1.8.0_91
if 32 bit
C:\Program Files (86)\Java\jdk1.8.0_91
Because you are choosing jre
dir. and not JDK
dir. JDK
dir. is for instance (depending on update and whether it's 64 bit or 32 bit): C:\Program Files (x86)\Java\jdk1.7.0_45
In my case it's 32 bit JDK 1.7
update 45