javax.usb.UsbException: Error while loading shared library <LibusbJNI.dll> : no LibusbJNI in java.library.path

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Coderanch by eddy johns, 1 year ago
Error while loading shared library <LibusbJNI.dll> : no LibusbJNI in java.library.path
via Oracle Community by 843810, 1 year ago
Error while loading shared library LibusbJNI.dll : C:\LibusbJNI.dll: The operating system cannot run %1
javax.usb.UsbException: Error while loading shared library <LibusbJNI.dll> : no LibusbJNI in java.library.path
at com.mcreations.usb.windows.JavaxUsb.loadLibrary(JavaxUsb.java:387)
at com.mcreations.usb.windows.JavaxUsb.initialise(JavaxUsb.java:312)
at com.mcreations.usb.windows.WindowsUsbServices.(WindowsUsbServices.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at javax.usb.UsbHostManager.createUsbServices(Unknown Source)
at javax.usb.UsbHostManager.getUsbServices(Unknown Source)
at com.usb.TraverseUSB.main(TraverseUSB.java:35)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.