This is an old revision of the document!
The dll (from C sources) and jar-file (from java sources) must be built separately. Checkout from https://gitlab.ost.ch/tech/inf/public/libusb-java.
g++ -shared -o libLibusbJava-"VERSION".so -fPIC LibusbJava.cpp -I"/usr/lib/jvm/java-"JAVA-VERSION"-openjdk-"ARCHITECTURE"/include" -I"/usr/lib/jvm/java-"JAVA-VERSION"-openjdk-"ARCHITECTURE"/include/linux" -I"./" -std)c++0x
$javah ch.ntb.inf.libusb.Libusb
Copy new header file to LibusbJava_C.