Java JNI Can't find dependent libraries

Java JNI Can't find dependent libraries

Samuel L.'s picture

I want to call ipp function via JNI. So I compiled dlls using c++ and I put these dlls into my Java project lib folder.

but when I call one ipp function jipp.core.ippGetCpuType(), it gives me error like: 

Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\DevelopJava\MyIPP\lib\jippcore.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at jipp.core.<clinit>(core.java:42)
at client.zero.main(zero.java:16)

but I already set java.library.path include intel path like:

\Program Files (x86)\Intel\Composer XE 2013\redist\intel64\ipp

D:\Program Files (x86)\Intel\Composer XE 2013\redist\intel64\compiler

so ,anyone can help me ?

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Chuck De Sylva (Intel)'s picture

Samuel,

Do you know which libraries you are linking too? That is, single-threaded or multi-threaded?

- Chuck

Samuel L.'s picture

java->jipp.core.ippGetCpuType()->JNI->ippcore-7.1.dll 

Samuel L.'s picture

sorry.  I restart the compute and test again. it's working. oh, eclipse is very bad.

Sergey Kostrov's picture

>>...when I call one ipp function jipp.core.ippGetCpuType(), it gives me error like:
>>
>>Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\DevelopJava\MyIPP\lib\jippcore.dll: Can't find dependent libraries

Samuel, I will do a verification in my very simple JNI+IPP test project with a call to ippGetCpuType IPP function. Let you know results as soon as it is completed.

Login to leave a comment.