For every other question that Karu was asked about this, here , here and here , I took all the steps to solve this problem, and none of them worked.
When running the 64-bit version of IntelliJ IDEA on my 64-bit computer running Windows 7, the following error occurs:
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.

However, the file path exists:

And in my environment variables, I set JAVA_HOME to this place:

I bothered to put it in my user variables instead of System and vice versa, and tried to put it in both. It did not work with the Java 7 JDK, which I originally had, so I just downloaded the Java 8 JDK and tried it - without dice.
I also restarted my computer, and CMD can use java and javac without any problems at all:

Any help on how I could solve this problem? My last resort is to uninstall and reinstall IntelliJ, which I may have to do.
source share