I downloaded the daal update 2 and installed it on a windows system. I have been able to run the java examples using the .bat files. But, when I set up an Eclipse program, I am running into problems. The daal.jar is recognized (build goes through) but when I run an example, I get the following error:
Here I am running the simple LibraryVersionInfoExample
Exception in thread "main" java.lang.UnsatisfiedLinkError: no JavaAPI in java.library.path
Is this a recognized problem or is it just my setup.
Was able to resolve the issue: I had not included the dll libraries in the System PATH. I added the following to the path variable;
and it fixed the issue.
This error is because Intel DAAL Java library requires a native library (JavaAPI.dll on Windows, libJavaAPI.so on Linux). And your Eclipse project does not find this native library. There're multiple ways to fix this. But the cleanest and simplest way is this:
We recognize that the current DAAL examples are not configured with IDE users in mind. It's not easy for a new user to use DAAL with a Java IDE. Hopefully, we will improve this in future releases.
Thank you Zhang. That was helpful.
However for the Linux based Eclipse, I needed to do the following to make it work;
1. Add the daal.jar to the build path (step 3 from Zhang)
2. Then select "Run Configurations" from the "Project" menu. Click the "Environment" tab. Add a new environment variable "LD_LIBRARY_PATH". Give it this value: (similar to step 5 and 6 from Zhang) Note "LD_LIBRARY_PATH" and not "Path"
There was no need to add the Native Library Location under "Source" tab (step 2 from Zhang).