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

Whenever I open IntelliJ IDEA, I get this error:

enter image description here

but I have it defined, and I don’t know why it does not work:

enter image description here

Any help accepted.

+22
source share
10 answers

Change the following value from the Path system variable:

 C:\Program Files (x86)\java\jdk1.8.0_112\jre\bin\server\jvm.dll 

in

 %JAVA_HOME%\bin 

Also make sure that there are no other links to Java folders in the Path variable.

+20
source

This may be a problem with version 32 and 64. Perhaps you are trying to run a 32-bit shortcut on the desktop. Try running version 64 (idea64.exe) inside the IDEA folder. It worked for me.

+7
source

To fix, I did not need to touch my environment variables.

I fixed this problem by installing / reinstalling the latest version of PHPStorm, choosing the option to save old settings, exit Windows and re-enter.

+5
source

I fixed this problem:

  1. Setting the JAVA_HOME environment variable to the JDK location that I wanted to use, for example, C:\Program Files\Java\jdk1.8.0_171
  2. Replacing any Java-related paths, for example, 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 variable path C:\ProgramData\Oracle\Java\javapath

The last step was decisive for me, it was overriding JAVA_HOME .

+2
source

In my case, this error appeared after logging into a Microsoft account (I use Windows 10). When I logged out, the error disappeared.

+1
source

I think you did not fix JAVA_HOME in your system environment variables.

0
source

If you install Intellij Idea on a 32-bit system, the JDK will not be included.

To resolve this issue, follow these steps:

1.Install the installed Intellij IDEA

2. Download and install the 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
source

In fact, I installed the canary version of Android Studio and created a 32-bit shortcut on the 64-bit Windows operating system,

 resolved by starting 64-bit version of Android Studio 
0
source

I had the same problem - my solution was a little different.

I needed to install the Microsoft Visual C ++ 2010 Redistributable Package (x64)

Hope this helps someone else!

0
source

I had this problem when trying to run PHPStorm through the command line (add the phpstorm bin folder to your path, and you should be able to do, for example, phpstorm.exe. ) - my locally installed one 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 set up the Path environment variable, you can run PhpStorm commands.

adding the path to jdk PHPStorm comes bundled with JAVA_HOME ( setx JAVA_HOME "C:\Program Files (x86)\JetBrains\PhpStorm 2019.1\jre64" ) does not solve the problem, because by default phpstorm.exe tries to find 32-bit JDK

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

0
source

Source: https://habr.com/ru/post/1258665/


All Articles