The UsbInterfacePolicy is a policy passed to the UsbInterface when you claim. You need to create your own policy, since javax.usb can't know what your policy is. Try
UsbInterfacePolicy uiP = new UsbInterfacePolicy() { public boolean forceClaim(UsbInterface i) { return true; } }; usbInterface.claim(uiP); On Thu, 17 Jun 2004, Scott Trafford wrote: >Hi > >I'm having some trouble with the forceClaim method (I think this is what I need to >use to claim my usb device since the OS seems to already have it claimed). Here is >my code: > >... > UsbInterfacePolicy uiP = null; > //how do i set or get uiP settings ?? > uiP.forceClaim(interf); > interf.claim(uiP); >... > >What I am unsure of, is how to get the UsbInterfacePolicy - most methods seem to have >a get<whatver> with them. Or is my code totally wrong? Can anyone help? > >Thanks, >Scott > >____________________________________________________________________________ >Ronneberger Computing Inc. >100 Main St., Box 820 >Brighton. ON, K0K 1H0 Canada >(613)475-3946 ext. 31 >email:[EMAIL PROTECTED] >http://www.rci.ca > > > >------------------------------------------------------- >This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference >Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer >Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA >REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND >_______________________________________________ >javax-usb-devel mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel