Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

enter image description here

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

enter image description here

and lastly:

enter image description here

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. It happens on Windows 10 Pro 1703 as well as 1709.

I'm not sure what else might be relevant.

like image 898
pupeno Avatar asked Mar 23 '18 17:03

pupeno


People also ask

Where can I find JVM dll?

The file "jvm. dll" is in the folder "C:\Program Files\Java\jre1.

How can you install the JVM DLL file?

Method 1: Download Jvm.dll to PC from our site. Copy the file to the program install directory after where it is missing the DLL file. Or move the DLL file to the directory of your System (C:\Windows\System32, and for a 64 bit in C:\Windows\SysWOW64\). Now you need to reboot the computer.

What is JVM dll?

jvm. dll is the actual Windows implementation of the JVM (or better, the main entry point). C or C++ applications can use this DLL to run an embedded Java runtime, and that would allow the application to interface directly with the JVM, e.g. if they want to use Java for its GUI.


1 Answers

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.

like image 51
Karol Dowbecki Avatar answered Sep 20 '22 03:09

Karol Dowbecki