Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: java access...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 982 of 1027
Post > Topic >>

Re: java access to USB MAC OS X

by Michael Ash <mike@[EMAIL PROTECTED] > Dec 31, 2007 at 10:35 AM

In comp.sys.mac.programmer.help Gadgetman <stewart.gadget@[EMAIL PROTECTED]
> wrote:
> I have a simple requirement at this point an Apple MAC OS X - that is
> to detect the presence or lack of a USB device from java.
> 
> I have read about JSR 80, javax.usb, jUSB and all indicate not
> available in Mac OS X.
> I also know that in linux, I can do a "cat /proc/bus/usb/devices" and
> get a list of devices connected to the machine.
> Now Mac OS X is "linux" - yet there doesn't appear to be /proc/dev/...
> etc.

No, Mac OS X is *not* "Linux". OS X is UNIX, Linux is a UNIX lookalike. 
(This is not meant to disparage Linux in any way, it's just the facts.) 
This is why OS X doesn't have /proc, it's a Linuxism.

> Any suggestions on how to get the presence or lack of a USB device
> from java on Mac OS X??

IOKit, but you'll have to use JNI to talk to it.

-- 
Michael Ash
Rogue Amoeba Software
 




 1 Posts in Topic:
Re: java access to USB MAC OS X
Michael Ash <mike@[EMA  2007-12-31 10:35:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 5:53:08 CDT 2008.