Error trying to install jpl library. jpl.dll: Can't find dependent libraries

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Error trying to install jpl library. jpl.dll: Can't find dependent libraries

This post has NOT been accepted by the mailing list yet.
I have a problem installing jpl library. I installed the latest swipl version (but I tried also unstable versions before):  

    SWI-Prolog 7.2.3 for Windows 7/8/10 64-bit edition

Then I added dependent paths to environment variables:

    Variable: SWI_HOME_DIR
    Value: C:\Program Files\swipl

Then I added, to `Path` these values:


I also added the VM argument like this:

    -Djava.library.path="C:\Program Files\swipl\bin"

to make sure that Eclipse sees this folder.  

After that I still get the error:

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Program Files\swipl\bin\jpl.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(
    at java.lang.ClassLoader.loadLibrary(
    at java.lang.Runtime.loadLibrary0(
    at java.lang.System.loadLibrary(
    at org.jpl7.JPL.loadNativeLibrary(
    at org.jpl7.fli.Prolog.<clinit>(
    at org.jpl7.Util.textToTerm(
    at org.jpl7.Query.Query1(
    at org.jpl7.Query.<init>(

I'm 100% sure, that Eclipse sees that jpl.dll file.

I know that this thread is probably duplicate of either of these:

but none of the solutions posted there, helped me.

I also find out that when I'm trying to run one of the examples, I get this error:

ERROR: c:/program files/swipl/library/
exists_file/1: Domain error: `file_name' expected, found `'C:\\Users\\Kamil\\AppData\\Local\\Microsoft\\Windowst\000\e\000\/jvm.dll'' (file name contains a 0-code)