Tag Archives: The selected directory is not a valid home for JDK

The selected directory is not a valid home for JDK when IntelliJ idea is imported into JDK

  • The JDK version is not compatible with the IDEA version:

Too high JDK version may cause this problem. JDK compatible with IDEA is required.

For example, if IDEA2016.3.8 is used and jdk-10.0.1_windows-x64_bin is used for JDK, this problem will always occur. After re-downloading jdk-8u171-windows-x64.exe and installing it, the problem was solved successfully!