File Exchange

image thumbnail

Prolog to Matlab with The SWI-Prolog

version 1.1 (267 KB) by

Prolog to Matlab with The SWI-Prolog and JPL(Java Interface to Prolog)

5 Downloads

Updated

View License

Prolog to Matlab with The SWI-Prolog and JPL(Java Interface to Prolog)
Marcelo Augusto Costa Fernandes
DCA - CT - UFRN
mfernandes@dca.ufrn.br

Comments and Ratings (5)

George Milis

I would appreciate some help in resloving the situation below. It seems that the jpl.dll remains loaded, while the system attempts to load it again when creating the Query instance.
Is there a workaround?
Thank you in advance,
George.

Java exception occurred:
java.lang.UnsatisfiedLinkError: Native Library C:\Program Files
(x86)\swipl\bin\jpl.dll already loaded in another classloader

at java.lang.ClassLoader.loadLibrary0(Unknown Source)

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.load0(Unknown Source)

at java.lang.System.load(Unknown Source)

at org.jpl7.JPL.loadNativeLibrary(JPL.java:110)

at org.jpl7.fli.Prolog.<clinit>(Prolog.java:70)

at org.jpl7.Query.open(Query.java:300)

at org.jpl7.Util.textToTerm(Util.java:127)

at org.jpl7.Query.<init>(Query.java:185)

matias

matias (view profile)

the example gives me this error!
Java exception occurred:
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(Unknown Source)

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.loadLibrary0(Unknown Source)

at java.lang.System.loadLibrary(Unknown Source)

at jpl.JPL.loadNativeLibrary(JPL.java:100)

at jpl.fli.Prolog.<clinit>(Prolog.java:85)

at jpl.Query.open(Query.java:286)

at jpl.Util.textToTerm(Util.java:162)

at jpl.Query.<init>(Query.java:198)

Error in example1 (line 2)
x=jpl.Query('consult(''example1.pl'')');

>> HEEELP!
thanks!

Daniel

Daniel (view profile)

Daniel

Daniel (view profile)

Updates

1.1

Update for SWI Prolog version 7.2.3.

MATLAB Release
MATLAB 7.6 (R2008a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today

SWIPrologMatlabV1.1/