[英]How to use JPL (bidirectional Java/Prolog interface) on windows?
I'm interested in embedding a Prolog interpreter in Java.我对在 Java 中嵌入 Prolog 解释器很感兴趣。 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.一种选择是使用JPL ,但 JPL 站点上的下载链接已损坏,并且安装页面提到了我找不到的 jpl.zip。 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.我下载了 SWI-Prolog,它似乎包含 JPL(它在安装时将它列为一个组件),但我仍然不确定如何将它与 Java 一起使用。
Any ideas on how to use JPL on Windows?关于如何在 Windows 上使用 JPL 的任何想法? 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 is no longer an additional download, so you don't need jpl.zip. JPL 不再需要额外下载,因此您不需要 jpl.zip。 If you download SWI-Prolog, it will install the necessary files.如果您下载 SWI-Prolog,它将安装必要的文件。 In comparison to the structure of jpl.zip shown in the installation notes , you'll find it now looks like this:与安装说明中显示的 jpl.zip 结构相比,您会发现它现在看起来像这样:
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")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.