I have a problem installing the jpl library. I installed the latest version of swipl (but before I tried unstable versions):
SWI-Prolog 7.2.3 for Windows 7/8/10 64-bit edition
Then I added the dependent paths to the environment variables:
Variable: SWI_HOME_DIR Value: C:\Program Files\swipl
Then I added the following values ββto Path :
%SWI_HOME_DIR%\lib\jpl.jar; %SWI_HOME_DIR%\lib; %SWI_HOME_DIR%\bin
I also added a VM argument as follows:
-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(ClassLoader.java:1937) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1855) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at org.jpl7.JPL.loadNativeLibrary(JPL.java:79) at org.jpl7.fli.Prolog.<clinit>(Prolog.java:41) at org.jpl7.Query.open(Query.java:260) at org.jpl7.Util.textToTerm(Util.java:102) at org.jpl7.Query.Query1(Query.java:129) at org.jpl7.Query.<init>(Query.java:120)
I am 100% sure that Eclipse sees this jpl.dll file, but, in my opinion, it seems that it needs other libraries.
I know that this thread probably duplicates any of them:
jpl.dll: cannot find dependent libraries
JPL Cannot find jpl.dll dependent libraries
but these questions do not answer or the answers do not help in my case.
source share