启动创意时出错。无法加载 JVM DLL C:\Program Files\Java\jdk1.8.0_112

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40204189/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 22:30:07  来源:igfitidea点击:

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

javaintellij-idea

提问by thompsonturkey

Whenever I open IntelliJ IDEA i get this error:

每当我打开 IntelliJ IDEA 时,我都会收到此错误:

enter image description here

在此处输入图片说明

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

但我已经定义了,我不知道为什么它不起作用:

enter image description here

在此处输入图片说明

Any help accepted.

接受任何帮助。

回答by DimaSan

Change the following value from your Pathsystem variable:

Path系统变量中更改以下值:

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

to:

到:

%JAVA_HOME%\bin

Also make sure there are no any other references to Java folders in the Pathvariable.

还要确保Path变量中没有对 Java 文件夹的任何其他引用。

回答by Wadih M.

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.

我通过安装/重新安装最新的 PHPStorm 版本来解决这个问题,选择保留旧设置的选项,从 Windows 注销并重新登录。

回答by Miles Winther

I fixed this issue by:

我通过以下方式解决了这个问题:

  1. Setting the JAVA_HOMEenvironment 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.dllin Pathwith %JAVA_HOME%\binas suggested by DimaSan
  3. Removing the following from the System variablespath C:\ProgramData\Oracle\Java\javapath
  1. JAVA_HOME环境变量设置为我想使用的 JDK 的位置,例如C:\Program Files\Java\jdk1.8.0_171
  2. 更换参照的Java例如,任何路径C:\Program Files (x86)\java\jdk1.8.0_112\jre\bin\server\jvm.dllPath%JAVA_HOME%\bin所建议DimaSan
  3. 系统变量路径中删除以下内容C:\ProgramData\Oracle\Java\javapath

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

最后一步对我来说至关重要,这是压倒一切的JAVA_HOME.

回答by James121

In my case, this error appeared after signing in to Microsoft account (I use Windows 10). When I logged out, the error dissapeared.

就我而言,此错误是在登录 Microsoft 帐户后出现的(我使用的是 Windows 10)。当我注销时,错误消失了。

回答by Arun Joshla

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

如果您在 32 位系统上安装 Intellij Idea - JDK 不会包含在捆绑包中。

To fix this issue follow the steps below :

要解决此问题,请按照以下步骤操作:

1.Uninstall the installed Intellij IDEA

1.卸载已安装的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

2.从这个链接下载并安装JDK SE 8:https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

3.Install Intellij IDEA

3.安装Intellij IDEA

Viola !

中提琴!

回答by Alexander Gorbenko

It could be problem with 32 and 64 version. Maybe you trying to launch 32-bit shortcut on your Desktop. Try to launch 64 version (idea64.exe) inside IDEA folder. This worked for me.

32 和 64 版本可能有问题。也许您试图在桌面上启动 32 位快捷方式。尝试在 IDEA 文件夹中启动 64 位版本 (idea64.exe)。这对我有用。

回答by Ali Tamoor

Actually i had installed the Android Studio canary version, and created a short cut of 32-bit on 64-bit windows operating system,

实际上我已经安装了Android Studio canary版本,并在64位windows操作系统上创建了一个32位的快捷方式,

resolved by starting 64-bit version of Android Studio

回答by Dai Bok

I had the same problem - My solution was slightly different.

我遇到了同样的问题 - 我的解决方案略有不同。

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

我需要安装 Microsoft Visual C++ 2010 Redistributable Package (x64)

Hope this helps someone else!

希望这对其他人有帮助!

回答by Sandra

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.

我在尝试通过命令行启动 PHPStorm 时遇到了这个问题(将 phpstorm bin 文件夹添加到您的路径,您应该可以执行例如phpstorm.exe .) - 我的本地安装工作正常。

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

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

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

将 PhpStormbin文件夹的路径添加 到Path环境变量(例如,C:\Program Files\JetBrains\PhpStorm\bin)。配置Path环境变量后,您可以运行 PhpStorm 命令。

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.exetries to find a 32-bit jdk

添加到 jdk 的路径 PHPStorm 与 as JAVA_HOME( setx JAVA_HOME "C:\Program Files (x86)\JetBrains\PhpStorm 2019.1\jre64")捆绑在一起 并不能解决问题,因为默认phpstorm.exe尝试查找 32 位 jdk

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

我需要专门使用 64 位 phpstorm 应用程序
phpstorm64.exe .

回答by Kuldeep Makwana

You have to do nothing buddy. Just use 32 bit version of application or install 64 bit JDK. You installed 32 bit JDK and you are trying to access 64 bit version of that application.

你什么都不用做,伙计。只需使用 32 位版本的应用程序或安装 64 位 JDK。您安装了 32 位 JDK 并且您正在尝试访问该应用程序的 64 位版本。