Reputation: 413
I have declared JAVA_HOME in environment variables and I have the following value in PATH: C:\Java\jre1.8.0_45\bin;%JAVA_HOME%; But still while launching IntelliJ I am getting below error.
The values from command prompt:
PS: This is a different problem. But the one I am facing does not have any such issue. I have JRE in my path variable and JDK in JAVA_HOME.(attached the screenshots)
Upvotes: 1
Views: 3095
Reputation: 9913
you can also add JDK to your system variables and point it to the JRE folder (do not point it to BIN folder)
Upvotes: 0
Reputation: 315
Your %JAVA_HOME%
variable should point to the directory of Java installation. Here's what you can do to fix it.
%JAVA_HOME%
to C:\Java\jre1.8.0_45\
%JAVA_HOME%\bin
to your %PATH%
variableUpvotes: 3