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

后端 未结 2 1359
难免孤独
难免孤独 2021-01-17 10:27

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:

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-17 10:56

    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 
    

提交回复
热议问题