usb4java icon indicating copy to clipboard operation
usb4java copied to clipboard

ExceptionInInitializerError on init

Open rickyManalo opened this issue 7 years ago • 0 comments

Environment:

  • OS: Windows 7
  • Java version 10.0.2
  • usb4java version 1.3.0

Bug description After following the tutorial on http://usb4java.org/quickstart/libusb.html, I keep getting a ExceptionInInitializerError when calling init(). I tried to use null or this but can't fix it because it needs org.usb4Java.Context which the tutorial didn't describe how to get.

Reproduction int result = LibUsb.init(null);

implementation 'org.usb4java:usb4java:1.3.0' implementation 'org.usb4java:libusb4java:1.3.0'

Expected behavior Be able to initialize usb4java without any error.

rickyManalo avatar Feb 13 '19 02:02 rickyManalo