javax.usb
843785Feb 25 2009 — edited Mar 20 2009Hello
I'm planning to write an application to connect to a development board via USB connection.
After google-ing i ended up trying to install javax-usb.
Downloaded the 3 packages:
javax-usb_1.0.2
javax-usb-ri_1.0.2
javax-usb-ri-linux_1.0.2
javax-usb builds ok. I add the path to "/lib/jsr80.jar" to my CLASSPATH.
when I try to build the second one, javax-usb-ri_1.0.2, I get lots of errors:
clean:
[echo] Cleaning everything.
compile:
[echo] Compiling class files.
[javac] Compiling 50 source files to /home/iggy/Documents/javax-usb-ri/src
[javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/DefaultUsbInterfacePolicy.java:12: package javax.usb does not exist
[javac] import javax.usb.*;
[javac] ^
[javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/DefaultUsbInterfacePolicy.java:18: cannot find symbol
[javac] symbol: class UsbInterfacePolicy
[javac] public class DefaultUsbInterfacePolicy implements UsbInterfacePolicy
[javac] ^
[javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/DefaultUsbInterfacePolicy.java:37: cannot find symbol
[javac] symbol : class UsbInterface
[javac] location: class com.ibm.jusb.DefaultUsbInterfacePolicy
[javac] public boolean forceClaim(UsbInterface usbInterface) { return false; }
[javac] ^
[javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/UsbConfigurationDescriptorImp.java:12: package javax.usb does not exist
[javac] import javax.usb.UsbConfigurationDescriptor;
[javac] ^
[javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/UsbConfigurationDescriptorImp.java:13: package javax.usb.util does not exist
[javac] import javax.usb.util.UsbUtil;
[javac] ^
etc..
I guess it doesn't seem to find the javax.usb library.Or...???
the third does't build either...naturally.
So what am I doing wrong?I'm using Ubuntu 8.10.
Is there any other way to make buld I/O over USB (besides using JNI)?