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

Coderanch | eddy johns | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Java and USB

    Coderanch | 7 years ago | eddy johns
    javax.usb.UsbException: Error while loading shared library <LibusbJNI.dll> : no LibusbJNI in java.library.path

    Root Cause Analysis

    1. javax.usb.UsbException

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

      at com.mcreations.usb.windows.JavaxUsb.loadLibrary()
    2. com.mcreations.usb
      WindowsUsbServices.<init>
      1. com.mcreations.usb.windows.JavaxUsb.loadLibrary(JavaxUsb.java:387)
      2. com.mcreations.usb.windows.JavaxUsb.initialise(JavaxUsb.java:312)
      3. com.mcreations.usb.windows.WindowsUsbServices.<init>(WindowsUsbServices.java:51)
      3 frames
    3. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      4. java.lang.reflect.Constructor.newInstance(Unknown Source)
      5. java.lang.Class.newInstance0(Unknown Source)
      6. java.lang.Class.newInstance(Unknown Source)
      6 frames
    4. javax.usb
      UsbHostManager.getUsbServices
      1. javax.usb.UsbHostManager.createUsbServices(Unknown Source)
      2. javax.usb.UsbHostManager.getUsbServices(Unknown Source)
      2 frames
    5. com.usb
      TraverseUSB.main
      1. com.usb.TraverseUSB.main(TraverseUSB.java:35)
      1 frame