Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.UnsatisfiedLinkError: Can't find dependent libraries

992679Feb 22 2013 — edited Feb 22 2013
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2013
Added on Feb 22 2013
1 comment
22,447 views