no usbJava-1.0 in java.library.path

  • Chris

    Chris - 2013-02-17


    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(
        at java.lang.Runtime.loadLibrary0(
        at java.lang.System.loadLibrary(
        at ch.ntb.inf.libusbJava.LibusbJava1.<clinit>(
        at ch.ntb.inf.libusbJava.LibusbJava.usb_init(
        at ch.ntb.inf.libusbJava.demo.LogBus.logBus(
        at ch.ntb.inf.libusbJava.demo.LogBus.main(

    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 ->
    -rwxrwxr-x 1 username username 77526 Feb 16 17:47
    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
  • Gustavo Belisario

    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! :)


Log in to post a comment.