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.
I faced the same issue.. My mistake was I was taking the path till /bin/ and putting ; at last.
Correct is - JAVA_HOME=C:\Program Files\Java\jdk1.8.0_92
no /bin/ no ';'
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 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%
.