Search code examples
javaswingnetbeans-7libusb

How to add libusb to java swing netbeans project?


libusb is installed on the Ubuntu host running Netbeans 7.1 but is not an option in Projects > Libraries > Right Click > Add Library. There are various libusb.so and libusb.a files on this host but no libusb.jar files.

I ended up using the javax.usb jar since the only wrapper I could find for libusb did not support v1.0.


Solution

  • You can create your own library by Tools > Libraries and click New Library button. Then you can give a name to your library and add the required jars to that library.

    After that if you repeat your process it should showup.