简体   繁体   English

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

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

Whenever I open IntelliJ IDEA i get this error:每当我打开 IntelliJ IDEA 时,我都会收到此错误:

在此处输入图像描述

but I have that defined and I don't know why it wont work:但我已经定义好了,但我不知道为什么它不起作用:

在此处输入图像描述

Any help accepted.接受任何帮助。

It could be problem with 32 and 64 version. 32 和 64 版本可能有问题。 Maybe you trying to launch 32-bit shortcut on your Desktop.也许您试图在桌面上启动 32 位快捷方式。 Try to launch 64 version (idea64.exe) inside IDEA folder.尝试在 IDEA 文件夹中启动 64 位版本 (idea64.exe)。 This worked for me.这对我有用。

Change the following value from your Path system 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 Path variable.还要确保Path变量中没有对 Java 文件夹的任何其他引用。

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 注销并重新登录。

I fixed this issue by:我通过以下方式解决了这个问题:

  1. Setting the JAVA_HOME environment variable to the location of the JDK I wanted to use eg C:\\Program Files\\Java\\jdk1.8.0_171JAVA_HOME环境变量设置为我想使用的 JDK 的位置,例如C:\\Program Files\\Java\\jdk1.8.0_171
  2. Replacing any paths referring to Java eg C:\\Program Files (x86)\\java\\jdk1.8.0_112\\jre\\bin\\server\\jvm.dll in Path with %JAVA_HOME%\\bin as suggested by DimaSan更换参照的Java例如,任何路径C:\\Program Files (x86)\\java\\jdk1.8.0_112\\jre\\bin\\server\\jvm.dllPath%JAVA_HOME%\\bin通过建议DimaSan
  3. Removing the following from the System variables path C:\\ProgramData\\Oracle\\Java\\javapath系统变量路径C:\\ProgramData\\Oracle\\Java\\javapath删除以下C:\\ProgramData\\Oracle\\Java\\javapath

The last step was crucial for me, this was overriding JAVA_HOME .最后一步对我来说至关重要,这是覆盖JAVA_HOME

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

resolved by starting 64-bit version of Android Studio

Nothing of the other solutions work for me on IntelliJ 2019.2 which starts to use JDK 11 on boot, so I have to resolve it on my own.在 IntelliJ 2019.2 上没有其他解决方案对我有用,它在启动时开始使用 JDK 11,所以我必须自己解决它。

Open C:\\Users\\.IdeaIC2019.2\\config\\idea64.exe.jdk and edit it to be:打开 C:\\Users\\.IdeaIC2019.2\\config\\idea64.exe.jdk 编辑为:

C:\Program Files\Java\jdk1.8.0_131

Restart IDE.重新启动IDE。

As documented on https://www.jetbrains.com/help/idea/switching-boot-jdk.htmlhttps://www.jetbrains.com/help/idea/switching-boot-jdk.html 所述

Note: the path on your machine may be different.注意:您机器上的路径可能不同。

In my case, this error appeared after signing in to Microsoft account (I use Windows 10).就我而言,此错误是在登录 Microsoft 帐户后出现的(我使用的是 Windows 10)。 When I logged out, the error dissapeared.当我注销时,错误消失了。

You have to do nothing buddy.你什么都不用做,伙计。 Just use 32 bit version of application or install 64 bit JDK.只需使用 32 位版本的应用程序或安装 64 位 JDK。 You installed 32 bit JDK and you are trying to access 64 bit version of that application.您安装了 32 位 JDK 并且您正在尝试访问该应用程序的 64 位版本。

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 !中提琴!

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!希望这对其他人有帮助!

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 bin folder to the Path environment variable (for example, C:\\Program Files\\JetBrains\\PhpStorm\\bin ).将 PhpStorm bin文件夹的路径添加到Path环境变量(例如, C:\\Program Files\\JetBrains\\PhpStorm\\bin )。 After you configured the Path environment variable, you can run the PhpStorm commands.配置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.exe tries to find a 32-bit jdk添加到 jdk PHPStorm 的路径与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我需要专门使用 64 位 phpstorm 应用程序
phpstorm64.exe .

I have faced the same problem and in my case, just right click and "Run as administrator", everything works fine.我遇到了同样的问题,就我而言,只需右键单击并“以管理员身份运行”,一切正常。

PS I am using Windows 10 in our company's domain. PS 我在我们公司的域中使用 Windows 10。

Solved it by running Android studio as admin.通过以管理员身份运行 Android studio 解决了这个问题。

Just Check on that path if the jvm.dll is present just run Android studio as administrator.只需检查该路径是否存在jvm.dll只需以管理员身份运行 Android Studio。

Can be several reasons:可能有几个原因:

1). 1)。 Check that your jdk-byte architecture is the same as your os-byte.检查您的 jdk-byte 架构是否与您的 os-byte 相同。 So, 32-nit architecture needs 32-bit jdk, 64 bit architecture needs 64 bit jdk.所以,32-nit 架构需要 32 位 jdk,64 位架构需要 64 位 jdk。

2). 2)。 If you're running a 64-bit architecture, use (idea64.exe, phpstorm64.exe, etc.).如果您运行的是 64 位架构,请使用(idea64.exe、phpstorm64.exe 等)。 On the 32-bit architecture use (idea.exe, phpstorm.exe, etc), to launch intelli-j products from the command line or terminal.在 32 位架构上使用(idea.exe、phpstorm.exe 等),从命令行或终端启动 intelli-j 产品。

I had the same issue (JDK 1.8.0_212), but none of the suggested solution worked.我遇到了同样的问题(JDK 1.8.0_212),但建议的解决方案都没有奏效。 I then installed a newer JDK (1.8.0_261) and the problem was solved (obviously, I had to update the JAVA_HOME too).然后我安装了一个较新的 JDK(1.8.0_261),问题就解决了(显然,我也不得不更新 JAVA_HOME)。

I have faced same issue after updating android studio version electric eel .更新 android studio version electric eel后,我遇到了同样的问题。 it's show error like this.它是这样显示错误的。 在此处输入图像描述

After many try I found this solution.经过多次尝试,我找到了这个解决方案。 you can follow this steps.你可以按照这个步骤。

Step 1: You can visit this site Official Oracle Java SE Development Kit Site and download particular JDK kit for your pc configuration.第 1 步:您可以访问此站点Official Oracle Java SE Development Kit Site并为您的电脑配置下载特定的 JDK 套件。 I am suggest to download this JDK version Java SE Development Kit 18.0.2.1 and after download you can install in your computer.我建议下载这个 JDK 版本Java SE Development Kit 18.0.2.1 ,下载后你可以安装在你的电脑上。

Step 2: After Successfully installed you can go第二步:安装成功后可以拨打go

Stat --> Search --> Edit Environment Variable --> You can follow this image Stat --> Search --> Edit Environment Variable --> 你可以按照这张图

1. 1. 在此处输入图像描述

在此处输入图像描述

Step 3: Now You can Add JAVA_HOME: C:\Program Files\Java\jdk-18.0.2.1 (install version in your pc) Like this第 3 步:现在您可以添加JAVA_HOME: C:\Program Files\Java\jdk-18.0.2.1 (在您的电脑中安装版本)像这样在此处输入图像描述

and also add PATH : C:\Program Files\Java\jdk-18.0.2.1\bin (install version in your pc) Like this并添加PATH : C:\Program Files\Java\jdk-18.0.2.1\bin (在您的电脑中安装版本)像这样在此处输入图像描述

Note : You can only add user variable not system variable.注意:您只能添加用户变量,不能添加系统变量。

Step 4: Last step but main after follow these steps you can restart your pc.第 4 步:执行这些步骤后的最后一步但主要是您可以重新启动您的电脑。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载JNI共享库“ C:\\ Program Files \\ Java \\ jdk1.7.0_40 \\ bin \\ .. \\ jre \\ bin \\ server \\ jvm.dll” - Failed to load the JNI shared library “C:\Program Files\Java\jdk1.7.0_40\bin\..\jre\bin\server\jvm.dll” 无法加载JNI共享库“ C:\\ Program Files \\ Java \\ jdk \\ 1.7.0_45 \\ bin \\ ... \\ jre \\ bin \\ server \\ jvm.dll” - Failed to load JNI shared library “C:\Program Files\Java\jdk\1.7.0_45\bin\…\jre\bin\server\jvm.dll” 启动IDEA时出错:无法加载JVM - Error launching IDEA: Failed to load JVM Eclipse:无法加载JNI共享库“C:\ Program Files(x86)\ Java \ jdk1.7.0_15 \ bin \ .. \ jre \ bin \ client \ jvm.dll - Eclipse: Failed to load the JNI shared library "C:\Program Files(x86)\Java\jdk1.7.0_15\bin\..\jre\bin\client\jvm.dll 在 Intellij IDEA 14.1.4 中:无法运行程序“C:/Program Files (x86)/Java/jdk1.8.0_45/bin/java” - In Intellij IDEA 14.1.4: Cannot run program "C:/Program Files (x86)/Java/jdk1.8.0_45/bin/java" 创建Java C:\\ Program Files \\ Java \\ jdk1.7.0_05 \\ jre \\ bin \\ client \\ jvm.dll失败 - Failed creating java C:\Program Files\Java\jdk1.7.0_05\jre\bin\client\jvm.dll '未能加载 JNI 共享库“C:\\Program Files\\Java\\jre7\\bin\\client\\jvm.dll”' - 'Failed to load the JNI shared library “C:\Program Files\Java\jre7\bin\client\jvm.dll” ' Javafx部署失败。 在指定位置找不到JDK工件:C:\\ Program Files \\ Java \\ jre1.8.0 - Javafx deployment failed. Can not find JDK artifacts in specified location: C:\Program Files\Java\jre1.8.0 无法构建离子错误:您的 JAVA_HOME 无效:“C:\\Program Files”\\Java\\jdk1.8.0_291 - Unable to build ionic error : Your JAVA_HOME is invalid: “C:\Program Files”\Java\jdk1.8.0_291 JAVA_HOME 设置为无效目录:C:\Program Files\Java\jdk1.8.0_202\bin - JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_202\bin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM