[BREAKGLASS] Append-only mirror of github.com/sparrowwallet/usb4java
When load method is called by usb4java-javax then the loading of the JNI library (Triggered by the load method) triggers the load method again. This results in a crash. Setting the loaded flag before loading the JNI lib prevents this. |
||
|---|---|---|
| src | ||
| .gitignore | ||
| LICENSE.md | ||
| pom.xml | ||
| README.md | ||
usb4java
USB library for Java based on libusb 1.0
Copyright (C) 2011 Klaus Reimer, k@ailis.de
Copyright (C) 2013 Luca Longinotti, l@longi.li
See LICENSE.md for licensing information.
This library can be used to access USB devices in Java. It is based on the native libusb 1.0 shared library and reflects this API as complete as possible. usb4java also implements the javax.usb (JSR80) API. So you can choose if you want to access the USB devices via the low-level libusb 1.0 API or via the high level javax.usb API.
The native libraries are included in pre-compiled form for Linux, Windows and Mac OS X in 32 and 64 bit versions. The libraries are automatically extracted and loaded so you don't need to care about them.
For more detailed information please visit the usb4java website.