java – IntelliJ IDEA The selected directory is not a valid home for JDK

java – IntelliJ IDEA The selected directory is not a valid home for JDK

Because you are choosing jre dir. and not JDK dir. JDK dir. is for instance (depending on update and whether its 64 bit or 32 bit): C:Program Files (x86)Javajdk1.7.0_45
In my case its 32 bit JDK 1.7 update 45

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 FilesJavajdk1.8.0_91

if 32 bit

C:Program Files (86)Javajdk1.8.0_91

java – IntelliJ IDEA The selected directory is not a valid home for JDK

May be your jdk is in /usr/lib/jvm/. This variant for linux.

Leave a Reply

Your email address will not be published.