idea 启动 java home,IntelliJ - 无法启动 - “JAVA_HOME没有指向有效的JVM安装”
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 o
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.

However, the file path does exist:

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

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:

Any help on how I could resolve this? My last resort is uninstalling and reinstalling IntelliJ, which I may have to do.
解决方案
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%.
更多推荐




所有评论(0)