What is usb4java?

usb4java is a Java library to access USB devices. The low-level part is based on the native libusb 1.0 library. Java NIO buffers are used for data exchange between libusb and Java. The high-level part implements the javax.usb standard (JSR-80).

Supported platforms are Linux (x86 32/64 bit, ARM 32 bit), OS X (x86 32/64 bit) and Windows (x86 32/64 bit). But other platforms may work as well (as long as they have at least Java 6 and are supported by libusb) by compiling the JNI library manually.

Download

When you are using Maven then you can add the necessary dependencies like this:

<repositories>
  <repository>
    <id>ailis</id>
    <name>Ailis Maven Releases</name>
    <url>http://nexus.ailis.de/content/groups/public/</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>de.ailis.usb4java</groupId>
    <artifactId>usb4java</artifactId>
    <version>1.0.0</version>
  </dependency>
</dependencies>

License

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Getting started

Download the latest usb4java and then read the quick start guide and the FAQ. There are also some examples available.

Donation

If you like usb4java, please consider making a small donation to support my work on free software like this. Thank you!

Flattr this

Support

For questions and discussions please use the usb4java Google Group. You can subscribe to it via email by sending a mail to usb4java+subscribe@googlegroups.com.

If you have found a bug in the software or this web site (even if it's just a typo) then please create an issue on GitHub.