jpl

How to use JPL (bidirectional Java/Prolog interface) on windows?

不羁的心 提交于 2020-01-13 10:17:14
问题 I'm interested in embedding a Prolog interpreter in Java. One option is using JPL, but the download links on the JPL site are broken, and the installation page mentions a jpl.zip that I can't find. I downloaded SWI-Prolog which seems to include JPL (it lists it as a component when installing), but I'm still not sure how I'd use it along with Java. Any ideas on how to use JPL on Windows? Is there another library I could use to achieve the same thing? I've come across a few but they don't seem

Compiling Prolog-JPL on Ubuntu 11.10 64-bit?

你。 提交于 2019-12-25 08:27:26
问题 I'm trying to compile prolog-JPL as described here: https://code.google.com/p/javanaproche/wiki/HowToJPL Unfortunately, it ends with an error: ********************** * Package plunit ********************** config.status: creating Makefile ********************** * Package jpl ********************** config.status: creating Makefile config.status: creating src/java/Makefile config.status: creating config.h config.status: config.h is unchanged ********************** * Package R ******************

JPL Can't find dependent libraries of jpl.dll

心不动则不痛 提交于 2019-12-25 00:53:10
问题 After installing SWI-Prolog in my computer, I went on to try one of its examples, and found out this particular beauty: run: Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\swipl\bin\jpl.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java

Querying Prolog variables with JPL

感情迁移 提交于 2019-12-23 19:49:35
问题 I want to make a query to use Prolog in java through JPL, I read the documentation (http://www.swi-prolog.org/packages/jpl/java_api/getting_started.html) The prolog predicates are these: child_of(joe, ralf). child_of(mary, joe). child_of(steve, joe). child_of(steve, ralf). descendent_of(X, Y) :- child_of(X, Y). descendent_of(X, Y) :- child_of(Z, Y), descendent_of(X, Z). My code looks like this Variable X = new Variable(); Query q4 = new Query( "descendent_of", new Term[] {X,new Atom("joe")} )

jpl.dll: Can't find dependent libraries

萝らか妹 提交于 2019-12-11 08:17:27
问题 I am using java netbeans and want to use prolog api in it but i keep getting error Exception in thread "main" 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.loadLibrary1(ClassLoader.java:1939) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825) at java.lang.Runtime.load0(Runtime.java:792) at

how to consult file as a module in jpl

我只是一个虾纸丫 提交于 2019-12-11 06:27:13
问题 I am trying to consult Prolog file as a module, since jpl does not support multiple prolog vms. In swipl console, I can do something like this successfully ?- consult(mod1:'data/load.pro') . In java (well, it is actually scala, but they are all on top of jvm), I can consult file directly w/o issue scala> import jpl._ scala> val q = new Query("consult", Array[Term](new Atom("data/load.pl"))) scala> q.query() ... true however, when I tried to consult the file as module, I always get the

How to use JPL (bidirectional Java/Prolog interface) on windows?

谁说胖子不能爱 提交于 2019-12-05 12:04:58
I'm interested in embedding a Prolog interpreter in Java. One option is using JPL , but the download links on the JPL site are broken, and the installation page mentions a jpl.zip that I can't find. I downloaded SWI-Prolog which seems to include JPL (it lists it as a component when installing), but I'm still not sure how I'd use it along with Java. Any ideas on how to use JPL on Windows? Is there another library I could use to achieve the same thing? I've come across a few but they don't seem as stable as JPL. JPL is no longer an additional download, so you don't need jpl.zip. If you download

JPL/SWI Prolog configuration failure

≯℡__Kan透↙ 提交于 2019-11-29 12:51:50
I'm configuring the JPL right now, and wanna work with swi-prolog using java. I downloaded the newest stable version of SWI-Prolog, which is 6.2.0, and installed in D:\swipl First, I added the following path to the PATH virable: D:\swipl\bin, which should include all dll files needed. Then, I added the following path to the CLASSPATH virable: D:swipl\lib\jpl.jar, which should be the jar file needed. When I tried to run the versions example provided, I got the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: jpl.fli.Prolog.thread_self()I at jpl.fli.Prolog.thread_self

JPL/SWI Prolog configuration failure

大兔子大兔子 提交于 2019-11-28 06:13:51
问题 I'm configuring the JPL right now, and wanna work with swi-prolog using java. I downloaded the newest stable version of SWI-Prolog, which is 6.2.0, and installed in D:\swipl First, I added the following path to the PATH virable: D:\swipl\bin, which should include all dll files needed. Then, I added the following path to the CLASSPATH virable: D:swipl\lib\jpl.jar, which should be the jar file needed. When I tried to run the versions example provided, I got the following error: Exception in