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

ExceptionInInitializerError on init #66

Open
rickyManalo opened this issue Feb 13, 2019 · 0 comments
Open

ExceptionInInitializerError on init #66

rickyManalo opened this issue Feb 13, 2019 · 0 comments

Comments

@rickyManalo
Copy link

rickyManalo commented Feb 13, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant