when I try to run the LogBus example or any other code that is using libusbJava I get an exception saying:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no usbJava-1.0 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at ch.ntb.inf.libusbJava.LibusbJava1.<clinit>(LibusbJava1.java:1385)
at ch.ntb.inf.libusbJava.LibusbJava.usb_init(LibusbJava.java:64)
at ch.ntb.inf.libusbJava.demo.LogBus.logBus(LogBus.java:30)
at ch.ntb.inf.libusbJava.demo.LogBus.main(LogBus.java:43)
But my ...trunk/LibusbJava/out folder definitely is on the library path.
System.out.println(System.getProperty("java.library.path")) proofs it.
This what my out folder looks like. Maybe I have to rename something?
trunk/LibusbJava/out$ ls -al
drwxrwxr-x 5 username username 4096 Feb 17 09:51 .
drwxrwxr-x 8 username username 4096 Feb 9 18:28 ..
lrwxrwxrwx 1 username username 23 Feb 16 17:48 libusbJava-1.0.so -> libusbJava-1.0.so.0.0.0
-rwxrwxr-x 1 username username 77526 Feb 16 17:47 libusbJava-1.0.so.0.0.0
drwxrwxr-x 6 username username 4096 Feb 13 21:36 .svn
drwxrwxr-x 3 username username 4096 Feb 9 17:49 x64
drwxrwxr-x 3 username username 4096 Feb 9 17:49 x86
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
did you manage to solve your problem? I'm getting an exception just like yours (the only difference is that I'm using libusb-0.1), so if you know what to do, please share with me.
Any help would be really appreciated! :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
when I try to run the LogBus example or any other code that is using libusbJava I get an exception saying:
But my ...trunk/LibusbJava/out folder definitely is on the library path.
System.out.println(System.getProperty("java.library.path")) proofs it.
This what my out folder looks like. Maybe I have to rename something?
Hey Chris,
did you manage to solve your problem? I'm getting an exception just like yours (the only difference is that I'm using libusb-0.1), so if you know what to do, please share with me.
Any help would be really appreciated! :)