Java GUI > JNI > C > USB Driver??
843829Nov 7 2007 — edited Dec 17 2007I am currently working on a project that uses a Java GUI to communicate to a custom USB device on Windows(xp, vista). I have read about jUSB, JSR 80 but as stated in the other posts/google searches the windows development is only at an early stage with no signs of ongoing development. Plus no one using a windows OS has had any success.
I have read that using a JNI wrapper is the way to go. I am able to call a c/c++ file from java, but unsure how to program the JNI c file to read/write to the USB device. (direct/indirect?)
A driver (sys file) was created for the custom USB device, and windows can detect it.
So my question is how do I go about programing the JNI wrapper to communicate to the USB device? Or is this a c/c++ programming problem?
I am using:
Windows Vista
netbeans 5.5.1 IDE w/ C/C++ Pack
latest Cygwin
Tutorials I've used:
http://www.netbeans.org/kb/55/beginning-jni-part1.html
http://weblogs.java.net/blog/claudio/archive/nb-reusable.html
Other Sources Read:
http://today.java.net/pub/a/today/2006/07/06/java-and-usb.html?page=1
http://jusb.sourceforge.net/
http://www.steelbrothers.ch/jusb/
http://jcp.org/en/jsr/detail?id=80
http://javax-usb.org/
http://msdn2.microsoft.com/en-us/library/aa490269.aspx
http://www.icaste.com/jcommusb.htm
http://java.sun.com/docs/books/jni/
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html