Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Java JNI Can't find dependent libraries

Samuel_L_1
Beginner
1,534 Views

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 ?

0 Kudos
4 Replies
Chuck_De_Sylva
Beginner
1,534 Views

Samuel,

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

- Chuck

0 Kudos
Samuel_L_1
Beginner
1,534 Views

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

0 Kudos
Samuel_L_1
Beginner
1,534 Views

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

0 Kudos
SergeyKostrov
Valued Contributor II
1,534 Views
>>...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.
0 Kudos
Reply