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

佐手、 提交于 2019-12-01 15:06:57

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.

Verfied again on Windows 10 Enterprise build 1709 with respective JDK versions and could confirm the issue as reported. A "Failed to find library: jvm.dll" and subsequent error dialogs popped up as described when checked with JDK 8u151/8u152.

Perhaps you can check what happens when you run with 8u162 or newer.

This is bit wrong error message, actually means that some of depend .dll was not found. One of jvm.dll's dependencies not jvm.dll itself.

From 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. 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 :

[Files] 
Source: "YOUR_APPLICATION\app\msvcr100.dll"; 
DestDir: "{app}"; 
Flags: ignoreversion 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!