====== Installation Instructions (Windows) ====== - Install libusb - Download the current libusb-Binaries from [[http://libusb.info]] \\ The current version of LibusbJava supports libusb-1.0.19. - Extract downloaded file - Copy the corresponding libusb-1.0.dll (64-bit) into your System32 directory (C:\Windows\System32) - Install LibusbJava - ​Download latest ​[[https://gitlab.ost.ch/tech/inf/public/libusb-java/uploads/c57ff1a37be8d7ffa1765b7895283731/LibusbJava-1_2_64bit.zip|Binaries]] - Copy LibusbJava-*.dll to C:\Windows\System32 - Copy the MinGW C++ Standard Libraries (libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll) to C:\Windows\System32. If you have already installed MinGW you can omit this step. - Copy LibusbJava.jar to your favorite directory and import it into your current project. - If you are using the LibusbJava together with eclipse, do as follows - Up to Java version 8: copy LibusbJava.jar to C:\Windows\Sun\Java\lib\ext - For Java version 9 or later, install the plugin ''LibusbJava'' plugin for eclipse from our [[http://update.libusb-java.ch/ | Update Site]]. ====== Installation Instructions (Ubuntu 14.04 and later) ====== - install libusb and the Java JDK: $ sudo apt-get update $ sudo apt-get install libusb-1.0-0-dev openjdk-7-jdk - download LibusbJava: \\ https://gitlab.ost.ch/tech/inf/public/libusb-java/uploads/c57ff1a37be8d7ffa1765b7895283731/LibusbJava-1_2_64bit.zip \\ \\ - extract the archive and copy the file //libLibusbJava-1_1.so// to ///usr/lib//: $ sudo cp libLibusbJava-1_1.so /usr/lib/ - copy the file //LibusbJava.jar// to ///usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext///: $ sudo cp LibusbJava.jar /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/ - create the file ///etc/udev/rules.d/50-bdi.rules// and write the following content to it: SUBSYSTEM=="usb", GROUP="plugdev", ATTRS{idVendor}=="8235", ATTRS{idProduct}=="0100" - reload the udev rules: $ sudo udevadm control --reload-rules