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


|