java.lang.UnsatisfiedLinkError: Can't find dependent libraries
992679Feb 22 2013 — edited Feb 22 2013Hi,
I am new to JNI.
But I got some examples from internet. That example is working fine.(hello world) ref : http://codeandme.blogspot.in/2011/09/jni-made-easy.html
But the same procedure i followed, i didnt get the output. it throwing the exception like below
java.lang.UnsatisfiedLinkError: D:\samples\JNISampleProject\resources\libadd.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.jni.addition.AddTwoNumbers.<clinit>(AddTwoNumbers.java:8)
Exception in thread "main"
I installed CDT & MINGW (mingw-get-inst-20120426.exe)
Anyone can help?
Thanks in advance.
Waiting for reply...
- Bala