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

Viewed 43811

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 JAVA_HOME 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 java and javac 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.

10 Answers

Had the same issues opening PHPSTORM from command line. Solution was to download jdk version 8 x86(32bit). Edit settings in Environment Variables by setting JAVA_HOME path in user variables for... to C:\Program Files (x86)\Java\jdk1.8.0_221

The problem I had seemed to be due to attempting to launch idea.exe rather than idea64.exe - when I moved to the 64 one then it worked.

Since this question appeared in my google search, and none of the aforementioned answers worked for me - here is my resolution.

What worked for me was changing \ to / in path.

So in my case it was: C:/Program Files/Java/jdk-11.0.11/ :)

You can also change the installation of OpenJDK (if you still have the installer packages) and add the JAVA_HOME variable (you have to enable it), afterwards just click through the installation until it is finished.

Related