简体   繁体   English

找不到库:jvm.dll。这里发生了什么?

[英]Failed to find library: jvm.dll. What's going on here?

In some computers, but not all, in which my application is installed, after what looks like a successful install, when you try to run it, it shows this error: 在我的应用程序安装的某些计算机(但不是全部)中,在看起来成功安装之后,当您尝试运行它时,它会显示以下错误:

在此输入图像描述

The file is present in that directory, so, I'm not sure why it says it failed to find the library. 该文件存在于该目录中,因此,我不确定为什么它说找不到该库。

That error is followed by 之后出现了这个错误

在此输入图像描述

and lastly: 最后:

在此输入图像描述

and then nothing happens. 然后没有任何反应。 The application doesn't start. 该应用程序无法启动。 Any ideas what's going on? 有什么想法发生了什么?

Some people pointed to this bug report which seems to be talking about this issue: https://bugs.openjdk.java.net/browse/JDK-8191176 but I have built my application with 8u162 as well as 8u172 (early access, specifically, jdk-8u172-ea-bin-b03-windows-x64-18_jan_2018), and the result is the same. 有些人指出这个错误报告似乎在讨论这个问题: https ://bugs.openjdk.java.net/browse/JDK-8191176但是我用8u162以及8u172构建了我的应用程序(早期访问,特别是,jdk-8u172-ea-bin-b03-windows-x64-18_jan_2018),结果是一样的。 It happens on Windows 10 Pro 1703 as well as 1709. 它发生在Windows 10 Pro 1703以及1709上。

I'm not sure what else might be relevant. 我不确定还有什么可能相关。

Could it be that you are affected by JDK-8191176 : JavaFX Self-Contained Application fails with error "Failed to find library: jvm.dll" which was affecting 8u151 and was fixed in 8u162. 可能是您受JDK-8191176的影响:JavaFX自包含应用程序失败,错误“找不到库:jvm.dll” ,这影响了8u151并在8u162中得到修复。

Verfied again on Windows 10 Enterprise build 1709 with respective JDK versions and could confirm the issue as reported. 在具有各自JDK版本的Windows 10 Enterprise build 1709上再次进行了验证,并且可以确认报告的问题。 A "Failed to find library: jvm.dll" and subsequent error dialogs popped up as described when checked with JDK 8u151/8u152. 使用JDK 8u151 / 8u152检查时,弹出“无法找到库:jvm.dll”和后续错误对话框。

Perhaps you can check what happens when you run with 8u162 or newer. 也许您可以检查当您使用8u162或更新版本时会发生什么。

This is bit wrong error message, actually means that some of depend .dll was not found. 这是错误的错误消息,实际上意味着找不到某些依赖.dll。 One of jvm.dll's dependencies not jvm.dll itself. jvm.dll的依赖项之一不是jvm.dll本身。

From https://bugs.openjdk.java.net/browse/JDK-8191176 : 来自https://bugs.openjdk.java.net/browse/JDK-8191176

For anyone seeking a solution, I extracted the "msvcr100.dll" from Java and added it to my application source. 对于任何寻求解决方案的人,我从Java中提取了“msvcr100.dll”并将其添加到我的应用程序源中。 When using the JavaPackager when building my JavaFX project (using InnoSetup), I simply add these lines in the setup.iss script in order to place the file next to the application.exe : 在构建JavaFX项目时使用JavaPackager(使用InnoSetup)时,我只需在setup.iss脚本中添加这些行,以便将文件放在application.exe旁边:

[Files] 
Source: "YOUR_APPLICATION\app\msvcr100.dll"; 
DestDir: "{app}"; 
Flags: ignoreversion 

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

相关问题 是否可以使用jvm.dll执行jar文件。 而不是java.exe? - is it possible to execute a jar file using jvm.dll. instead of java.exe? '未能加载 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” ' 无法加载JVM DLL-Android Studio - Failed to load JVM DLL - Android Studio 发出命令库(rJava)时Cran-R找不到jvm.dll - Cran-R can't find jvm.dll when issuing command library(rJava) 如何从 JVM 卸载库 (DLL) - How to unload library (DLL) from the JVM Android 工作室:加载失败 JVM DLL - Android Studio: Failed to load JVM DLL 无法加载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” Eclipse:无法加载JNI共享库“ C:\\ Windows \\ system32 \\ .. \\ jre \\ bin \\ client \\ jvm.dll” - Eclipse: Failed to load the JNI shared library “C:\Windows\system32\..\jre\bin\client\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” Eclipse无法找到JVM.dll - Eclipse cannot find JVM.dll
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM