Control USB using Java. Observe and Listen to USB Events with Java.
1. download http://sourceforge.net/projects/javax-usb/files/ ri-linux
2. $ export JAVA_HOME=/usr/lib/jvm/java-6-sun ;echo $JAVA_HOME
3. /usr/lib/jvm/java-6-sun/include/linux$ sudo ln -s ../jni.h
4. compile the c interface $ ./javax-usb-ri-linux/jni/make
Reference
http://javax-usb.org/ - main site
http://javax-usb.cvs.sourceforge.net/javax-usb/javax-usb-ri-linux/ - source
No comments:
Post a Comment