linux - no usbJava in java.library.path -
i got .jar file code works on windows, , i'm trying run on linux, keep getting message, , don't know do.
exception in thread "thread-0" java.lang.unsatisfiedlinkerror: no usbjava in java.library.path @ java.lang.classloader.loadlibrary(classloader.java:1856) @ java.lang.runtime.loadlibrary0(runtime.java:845) @ java.lang.system.loadlibrary(system.java:1084) @ ch.ntb.usb.libusbjava.<clinit>(libusbjava.java:366) @ ch.ntb.usb.usb.init(usb.java:315) @ ch.ntb.usb.usb.getbus(usb.java:296) @ ch.ntb.usb.device.initdevice(device.java:102) @ ch.ntb.usb.device.open(device.java:222) @ transmittermodulehidinterface.run(transmittermodulehidinterface.java:28) @ java.lang.thread.run(thread.java:722) i'm using java wrapper libusb-0.1 (i followed installation instructions here).
any appreciated!
you need create link shared library, per linux installation instructions:
http://libusbjava.sourceforge.net/wp/?page_id=8
if you're having trouble building shared library might of help:
http://me.opengroove.org/2010/01/libusbjavaso.html
the sources library under /libusbjava/trunk/libusbjava/ in svn source tree.
Comments
Post a Comment