Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JNA can't find dependent libraries #413

Closed
tresf opened this Issue Feb 9, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@tresf
Copy link
Contributor

tresf commented Feb 9, 2019

Using OpenJDK11 from AdoptOpenJDK.org on Windows, the "About" dialog raises the following error:

Exception in thread "DeviceRemovalHandler" java.lang.UnsatisfiedLinkError: C:\Users\owner\AppData\Local\Temp\jna-106164915\jna1221906576012913996.dll: Can't find dependent libraries
        at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
        at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2430)
        at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2487)
        at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2684)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2617)
        at java.base/java.lang.Runtime.load0(Runtime.java:767)
        at java.base/java.lang.System.load(System.java:1831)
        at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851)
        at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
        at com.sun.jna.Native.<clinit>(Native.java:140)
        at purejavahidapi.windows.Kernel32Library.<clinit>(Kernel32Library.java:43)
        at purejavahidapi.windows.DeviceRemovalHandler$1.run(DeviceRemovalHandler.java:54)
        at java.base/java.lang.Thread.run(Thread.java:834)

I found an identical backtrace here which suggests updating JNA will fix it: MarkusBernhardt/proxy-vole#35

@tresf tresf added the bug label Feb 9, 2019

@tresf tresf added this to the 2.0.9 milestone Feb 9, 2019

@tresf

This comment has been minimized.

Copy link
Contributor Author

tresf commented Mar 1, 2019

Impact to bumping JNA:

  • jssc's dot NOT use JNA
  • usb4java does NOT use JNA
  • ⚠️hid4java DOES use JNA
  • ⚠️purjavahidapi DOES use JNA

@tresf tresf referenced this issue Mar 1, 2019

Merged

Bump JNA #427

@tresf tresf closed this in #427 Mar 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.