homersimpson homersimpson - 1 year ago 76
Java Question

IntelliJ - Can't start - "JAVA_HOME does not point to a valid JVM installation"

For every other StackOverflow question that's been asked about this, here, here, and here, I've followed all the steps to resolve this issue, and none have worked.

When launching IntelliJ IDEA 64-bit on my 64-bit Windows 7 machine, I encounter the following error:

The environment variable JAVA_HOME (with the value of "C:\Program Files\Java\jdk1.8.0_74")
does not point to a valid JVM installation.

Error launching IDEA

However, the file path does exist:

Filepath screenshot

And in my Environment Variables, I have set
to that location:

Environment Variables

I've tinkered around with putting it in my User variables instead of the System and vice-versa, and tried putting it in both. It didn't work with the Java 7 JDK I had originally, so I just downloaded the Java 8 JDK and tried it - no dice.

I also restarted my computer, and CMD can use
with no problem at all:

enter image description here

Any help on how I could resolve this? My last resort is uninstalling and reinstalling IntelliJ, which I may have to do.

Answer Source

The java and javac executables are using the PATH environment variable, while intelliJ is using JAVA_HOME variable. Remove the additional quotation marks in your JAVA_HOME value.

It might shows that your path to the jdk installation directory is hard coded in the PATH, rather then using %JAVA_HOME%.