Netbeans IDE: java.lang.UnsatisfiedLinkError: OBIDISC4J.dll: Can't find dependent libraries -
i trying execute program related uhf reader integration. programming sdk (id_isc.sdk.java-v4.7.0) has been given reader manufacturer (in case, reader id isc.mru102-usb reader feig electronic). when tried running sample project sdk, got following error:
exception in thread "main" java.lang.unsatisfiedlinkerror: c:\program files\obid\obidisc4j.dll: can't find dependent libraries @ java.lang.classloader$nativelibrary.load(native method) @ java.lang.classloader.loadlibrary0(classloader.java:1941) @ java.lang.classloader.loadlibrary(classloader.java:1857) @ java.lang.runtime.loadlibrary0(runtime.java:870) @ java.lang.system.loadlibrary(system.java:1122) @ de.feig.fedmiscreader.<init>(unknown source) @ isohostsample.isohostsample.<init>(isohostsample.java:41) @ isohostsample.isohostsample.main(isohostsample.java:865)
i followed instructions given in readme file in sdk:
i have placed required .dll files along .jar file (obidisc4j.jar) in obid folder under program files , have entered path in path environment variable.
the program navigating path @ runtime, unable pick jar library file it, throwing above exception.
any on resolving appreciated. thank you
i've had luck "depends.exe" dependency walker tool learn dependent libraries can't find. in end it's because they're not on classpath.
the dlls need on application's classpath, , that's not same thing path environment variable. since "src" folder on classpath, create "native\windows" or "native/linux" folder inside "src" , put .dll or .so libraries in there.
if placing libaries inside project folder not option reason, can specify classpath on command line java.exe: "java -classpath -jar myjar.jar"
Comments
Post a Comment