On Tue, 1 Jan 2008 00:02:43 +0800, Gadgetman wrote
(in article
<3d06056d-fa64-4aaa-ba89-4cfd49563a55@[EMAIL PROTECTED]
>):
> 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.
>
> Any suggestions on how to get the presence or lack of a USB device
> from java on Mac OS X??
>
try this
http://www.serialio.com/sup****t/jspCommAPI.php
it gives serial via usb, which should allow a detection.
But i have also seen a usb library available for osx, but not the crap
listed
above.