On Wed, Feb 6, 2013 at 12:06 AM, Kustaa Nyholm <kustaa.nyh...@planmeca.com> wrote: > On 5.2.2013 17.56, "Lars Pötter" <l...@ing-poetter.de> wrote: >>So the question is if it is possible to create a single jar file that >>includes everything needed to provide the libusbx API to a Java program >>and let it speak to USB Devices on Linux, Windows and Mac without a >>Driver installed ? > > The experts should chime in but I think WinUSB might do the > trick for you depending on the Windows version you are > going to support. > > Linux, I guess, would also work.
Unless the permission problem chimed in, libusbx will work out of the box, but permission problem can be solved by udev rules. > Don't know if there is a generic pre-installed driver for Mac OS X. As long as the device is not claimed by another kernel driver (eg: HID, or CDC-ACM), libusbx will work out of the box under Mac OS X. You need a supported driver for Windows to get libusbx works, of the supported drivers, only HID does not need driver installation (it still need driver installation but the system does it automatically). For WinUSB, it is possible to use Microsoft OS Descriptor to get it installed automatically under Windows 8 but this may or may not work under previous version of Windows. The other possible way is to get the driver package WHQLed and available from Windows Update. But then the user needs to be connected to the internet and not interrupt the driver downloading process. That being said, I think it should be possible to bundle a driver installer inside your Java package to get that done. I know next to nothing about Java but I've seen the Silicon Labs IDE uses Java based installer and everything is inside JAR files (including IDE installation files which has nothing to do with Java and driver installation files which has nothing to do with Java, even trial version of Keil 8051 IDE). > The one possibility I mentioned is HID and HIDAPI from signal11, > that would be pretty much an installation free solution, but > HID has some limitations regarding endpoints and speeds achievable. > > But lets wait for the experts. If the HID limitation is okay, then probably HIDAPI is a good option. -- Xiaofan ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel