如何在Windows上使用JPL(双向Java / Prolog接口)? [英] How to use JPL (bidirectional Java/Prolog interface) on windows?

查看:248
本文介绍了如何在Windows上使用JPL(双向Java / Prolog接口)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣在Java中嵌入Prolog解释器。一种选择是使用 JPL ,但下载链接在JPL网站已损坏,安装页面提到了jpl.zip我找不到。我下载了SWI-Prolog,它似乎包含了JPL(它在安装时将其列为组件),但我仍然不确定如何将它与Java一起使用。

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.

有关如何在Windows上使用JPL的任何想法?我可以使用另一个库来实现同样的目的吗?我遇到过一些,但它们似乎不像JPL那样稳定。

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不再是一个额外的下载,所以你不需要jpl.zip。如果您下载SWI-Prolog,它将安装必要的文件。与安装说明中显示的jpl.zip结构相比,你会发现它现在看起来像这样:

JPL is no longer an additional download, so you don't need jpl.zip. If you download SWI-Prolog, it will install the necessary files. In comparison to the structure of jpl.zip shown in the installation notes, you'll find it now looks like this:

C:\Program Files\Prolog\
 +--- doc\packages\examples\jpl
 |     +--- Exceptions
 |     +--- Exceptions2
 |     +--- Family
 |     +--- Test
 |     +--- Test2
 |     +--- Time
 |     +--- Zahed
 |     +--- (and maybe more...)
 |
 +--- bin\jpl.dll  (a native library - for Windows in this case)
 |
 +--- lib\jpl.jar  (a Java library)
 |
 +--- library\jpl.pl  (a Prolog library)
 |
 +--- doc\packages\jpl\index.html  (JPL's documentation "home page")

这篇关于如何在Windows上使用JPL(双向Java / Prolog接口)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆