Error launching IDEA: Failed to load JVM

Daedalus picture Daedalus · Mar 29, 2018 · Viewed 11.7k times · Source

I recently installed IntelliJ IDEA 2018. However, when I tried to run IntelliJ, I received the following error message:

Error loading IDEA:
Error loading IDEA

I looked up my system environment variables which I have posted below:

System Variables:
System Variables

I checked which version of Java I have on the command prompt:

Java Version | Command Prompt:
Java Version | Command Prompt

I checked my program files:

Program Files | JDK 9:
Program Files | JDK 9

I also checked my Program Files (x86):

Program Files (x86) | JRE 1.8: Program Files (x86) | JRE 1.8

Answer

J.D.K. picture J.D.K. · Mar 30, 2018

I've had an issue in the past where the oracle jdk was given priority over the jdk I wanted to use and eclipse wouldn't load because of it. While this is not exactly the same issue it seems similar in nature since I see you have a listing for Oracle/java/javapath in your Path environment variable.

I can see in your path that oracle is listed first.

Try listing %JAVA_HOME%/bin; as the first entry inside your Path variable.