Discussion:
jpl.dll: Can't find dependent libraries
Tomov, Stefan
2012-10-17 09:29:43 UTC
Permalink
Hello,

i'm currently setting up an application using Prolog and Java that i need to code against.

The first problem encountered was the "no jpl in java.library.path" - problem.

It was solved through setting the -Djava.library.path="" - argument for the swipl/ bin and swipl/lib folders.

However, the subsequent problem is making me crazy.

It states:

java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\swipl\bin\jpl.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
....


I wasn't able to find a working solution for this problem in the web.
Someone says, that the swipl.dll need to be in the classpath. I can't find this file at all!?
But at the moment i have no idea why this problem comes. Did i forgot to specify some paths? Or is a .dll specified in -Djava.library.path not able to load another .dll ??
(I'm working on a computer on which i cannot change the system variables)
Would be so so glad if anyone could help with this problem. IÄm becoming really desperate :/


Greetings and thanks in advance
Stefan
Paul Singleton
2012-10-17 12:18:12 UTC
Permalink
Have you installed a recent 32-bit SWIPL binary on 64-bit Windows? If
so, which version of each?

If swipl/bin is on your Windows PATH, then your JVM will put it in its
java.library.path by default (or you can indeed do it explicitly as
you did). You do not need swipl/lib on java.library.path

swipl.dll does not need to be in the classpath (only .jar and .class
files can usefully be referenced here).

In the latest SWIPL, the dll is named 'libswipl.dll', and the JPL code
has been tweaked accordingly.

I suggest you install the latest stable Windows 32-bit binary, put
c:/swipl/bin on your PATH, and try the JPL examples in

C:\swipl\doc\packages\examples\jpl

(both ways: starting in Prolog and starting in Java).

These should work out-of-the-box, and this helps focus on your issue.

cheers - Paul Singleton
Post by Tomov, Stefan
Hello,
i'm currently setting up an application using Prolog and Java that i need to code against.
The first problem encountered was the "no jpl in java.library.path" - problem.
It was solved through setting the -Djava.library.path="" - argument for the swipl/ bin and swipl/lib folders.
However, the subsequent problem is making me crazy.
java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\swipl\bin\jpl.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
....
I wasn't able to find a working solution for this problem in the web.
Someone says, that the swipl.dll need to be in the classpath. I can't find this file at all!?
But at the moment i have no idea why this problem comes. Did i forgot to specify some paths? Or is a .dll specified in -Djava.library.path not able to load another .dll ??
(I'm working on a computer on which i cannot change the system variables)
Would be so so glad if anyone could help with this problem. IÄm becoming really desperate :/
Greetings and thanks in advance
Stefan
_______________________________________________
SWI-Prolog mailing list
https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
Loading...