Ok I had to read the archived questions in the mailing list to figure out that I needed to add jrs80-1.0.1.jar as well as jrs80_ri-1.0.1.jar. I guess I need for windows but I can neither locate this nor is there any doc telling me that I need this except one conjecture on the mailing list.
Are things so horrifyingly bad at device driver level? You would think that people would have beaten a well trod path there making it easier for the rest. I got it to compile now but it gave another error saying it was looking for javax.usb.properties file (!wow!). So somehow I added this folder to the build path that contains the .properties file. My new problem is this error : The property javax.usb.services is not defined as the implementation class of UsbServices When I open the .properties file (remember none of this is in any docs and certainly not the FAQ). Reading the file it says that I am supposed to set this value. Set it to what value? # This is required by the API, this is the class that the API will create # to implement UsbServices. What class is that? just any random name like abc? This is quite difficult just to get a simple example working. On Fri, Dec 26, 2008 at 11:23 PM, Athar Shiraz Siddiqui <[email protected]> wrote: > I am attempting a simple inventory example listed here : > http://www-128.ibm.com/developerworks/linux/library/j-usb.html#resources > > I had to go to an older version to get hold of a jar file (it was > nightmarish just to get the latest version to build even with winant > installed the build failed because it didnt recognize the javax.usb > package). > > I am using jsr80_ri-1.0.1.jar on winxp with jdk 1.6 installed. > > When I try to build : > UsbServices services = UsbHostManager.getUsbServices(); > it says that UsbServices not recognized. It also doesnt find > UsbHostManager. I know the jar is in the classpath because I can see > it added to my project's build path. I search for usbservice within > the files and for file names and i dont find it there either. > > Any help in this regard would be helpful. > > -- > Shiraz > > 500 Riverside Drive > #425 > New York, NY 10027 > (703) 879-8342 (skype prefer) > (703) 862 4796 (cell) > (212) 316 8630 (landline) (extn 8630) > -- Shiraz 500 Riverside Drive #425 New York, NY 10027 (703) 879-8342 (skype prefer) (703) 862 4796 (cell) (212) 316 8630 (landline) (extn 8630) ------------------------------------------------------------------------------ _______________________________________________ javax-usb-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
