Error Launching Idea. Failed to load JVM DLL C:\Program Files\Java\jdk1.8.0_112

前端 未结 14 1308
野趣味
野趣味 2020-12-11 14:15

Whenever I open IntelliJ IDEA i get this error:

but I have that defined and I don\'t know why it wont work:

Any help accepted.

14条回答
  •  执笔经年
    2020-12-11 15:04

    I fixed this issue by:

    1. Setting the JAVA_HOME environment variable to the location of the JDK I wanted to use e.g. C:\Program Files\Java\jdk1.8.0_171
    2. Replacing any paths referring to Java e.g. C:\Program Files (x86)\java\jdk1.8.0_112\jre\bin\server\jvm.dll in Path with %JAVA_HOME%\bin as suggested by DimaSan
    3. Removing the following from the System variables path C:\ProgramData\Oracle\Java\javapath

    The last step was crucial for me, this was overriding JAVA_HOME.

提交回复
热议问题