error in loading jpl in netbeans for windows 10

57 views
Skip to first unread message

الاء الرحيلي

unread,
Feb 13, 2016, 4:04:17 PM2/13/16
to SWI-Prolog
this error presented in netbeans at loading jpl:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Windows\System32\jpl.dll: Can't find dependent libraries
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
 at java.lang.Runtime.loadLibrary0(Runtime.java:849)
 at java.lang.System.loadLibrary(System.java:1088)
 at org.jpl7.JPL.loadNativeLibrary(JPL.java:98)
 at org.jpl7.fli.Prolog.<clinit>(Prolog.java:60)
 at org.jpl7.Query.open(Query.java:281)
 at org.jpl7.Util.textToTerm(Util.java:121)
 at org.jpl7.Query.<init>(Query.java:165)
 at org.jpl7.Query.hasSolution(Query.java:761)
 at family.Family.main(Family.java:25)
Java Result: 1

please help me for solve this error

Paul Singleton

unread,
Feb 14, 2016, 9:53:20 AM2/14/16
to SWI-Prolog
On Saturday, 13 February 2016 21:04:17 UTC, الاء الرحيلي wrote:

this error presented in netbeans at loading jpl:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Windows\System32\jpl.dll: Can't find dependent libraries

 Someone has moved or copied a jpl.dll into Windows' system32 folder.

This sort of hacking around is unsupported ;-)

Clean up your filesystem so that SWI-Prolog and JPL files are exactly and only where the SWI-Prolog installer installed them (delete any rogue jpl.* files).

Construct a .bat file defining the simplest PATH and CLASSPATH which allows you to run a Java application which uses JPL to call Prolog.

Migrate this into netbeans (whatever that is...)

Be diligent and you won't need luck ;-)

Paul Singleton
Reply all
Reply to author
Forward
0 new messages