HookUp
HookUp

Reputation: 413

Error Launching IntelliJ--does not point to a valid JVM

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.

enter image description here

The values from command prompt:

enter image description here

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

Answers (2)

kavehmb
kavehmb

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

slawekpl
slawekpl

Reputation: 315

Your %JAVA_HOME% variable should point to the directory of Java installation. Here's what you can do to fix it.

  1. Set %JAVA_HOME% to C:\Java\jre1.8.0_45\
  2. Add %JAVA_HOME%\bin to your %PATH% variable

Upvotes: 3

Related Questions