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

前端 未结 14 1304
野趣味
野趣味 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 14:55

    I have faced the same problem and in my case, just right click and "Run as administrator", everything works fine.

    P.S. I am using Windows 10 in our company's domain.

    0 讨论(0)
  • 2020-12-11 15:00

    If you are installing Intellij Idea on a 32 bit System - the JDK will not come within the bundle.

    To fix this issue follow the steps below :

    1.Uninstall the installed Intellij IDEA

    2.Download and install JDK SE 8 from this link : https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

    3.Install Intellij IDEA

    Viola !

    0 讨论(0)
  • 2020-12-11 15:01

    I had this issue when trying to start PHPStorm via the command line (add the phpstorm bin folder to your path, and you should be able to do eg phpstorm.exe .) - my local installed worked fine.

    see also https://www.jetbrains.com/help/phpstorm/working-with-the-ide-features-from-command-line.html:

    Add the path to the PhpStorm bin folder to the Path environment variable (for example, C:\Program Files\JetBrains\PhpStorm\bin). After you configured the Path environment variable, you can run the PhpStorm commands.

    adding the path to the jdk PHPStorm comes bundled with as JAVA_HOME (setx JAVA_HOME "C:\Program Files (x86)\JetBrains\PhpStorm 2019.1\jre64") doesn't solve the issue as the default phpstorm.exe tries to find a 32-bit jdk

    I needed to specifically use the 64-bit phpstorm application
    phpstorm64.exe .

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-11 15:05

    Can be several reasons:

    1). Check that your jdk-byte architecture is the same as your os-byte. So, 32-nit architecture needs 32-bit jdk, 64 bit architecture needs 64 bit jdk.

    2). If you're running a 64-bit architecture, use (idea64.exe, phpstorm64.exe, etc.). On the 32-bit architecture use (idea.exe, phpstorm.exe, etc), to launch intelli-j products from the command line or terminal.

    0 讨论(0)
  • 2020-12-11 15:07

    To fix I didn't need to touch my environment variables.

    I fixed that issue by installing/re-installing the latest PHPStorm version choosing the option to keep old settings, logging out from Windows and logging back in.

    0 讨论(0)
提交回复
热议问题