OS X 10.10 & usb4Java - Unable to claim interface: Access denied

3,563 views
Skip to first unread message

David Sargent

unread,
Feb 3, 2015, 2:29:38 PM2/3/15
to usb4...@googlegroups.com
I am trying to use usb4java (high Level interface) in OS X 10.10 environment. Things are going well until I try to claim the interface, then I get the following error:

[java] Error: javax.usb.UsbPlatformException: USB error 3: Unable to claim interface: Access denied (insufficient permissions)
[java] javax.usb.UsbPlatformException: USB error 3: Unable to claim interface: Access denied (insufficient permissions)
[java] at org.usb4java.javax.ExceptionUtils.createPlatformException(ExceptionUtils.java:39)
[java] at org.usb4java.javax.AbstractDevice.claimInterface(AbstractDevice.java:430)
[java] at org.usb4java.javax.Interface.claim(Interface.java:102)
[java] at JavaUSBTester.main(JavaUSBTester.java:236)

I have tried running the code as root, did not work either.

Is anyone currently using this in OS X 10.10 environment?
Any ideas how to correct the issue?
If I need to go to low level to make this work, will do if that is required.

Thanks

Dennis Sheirer

unread,
Feb 4, 2015, 7:14:15 AM2/4/15
to usb4...@googlegroups.com, da...@holicow.com
This might help in resolving the issue ...

https://github.com/libusb/libusb/wiki/FAQ

Scroll down to the 'Running libusb' section ...

Denny

ben.willi...@me.com

unread,
Feb 5, 2015, 12:48:56 PM2/5/15
to usb4...@googlegroups.com, da...@holicow.com
I have been running under OSX with the low level libs.
It's important to release the interface. OSX will remember
the claim over restarts of your device. It this is your issue,
rebooting OSX will allow you to do a claim it again, once.
May not be your issue, give it try

Florian

unread,
Mar 8, 2015, 12:30:07 PM3/8/15
to usb4...@googlegroups.com
Hi! I just find your problem about usb4java on mac OS while
I was searching an answer to mine.
I have the same error than you:

USB error 3: Unable to claim interface: Access denied (insufficient permissions)

So I would like to know if you find the solution because I'm stuck..

Hope you find the answer, if not, good luck !


Gogo Cao

unread,
Apr 13, 2015, 12:17:46 PM4/13/15
to usb4...@googlegroups.com, flo....@hotmail.fr

Hey guys:

I have the same issue: 
  
  USB error 3: Unable to claim interface: Access denied (insufficient permissions) 

Reply all
Reply to author
Forward
0 new messages