JPL / SWI Prolog不工作 [英] JPL/SWI Prolog not working

查看:194
本文介绍了JPL / SWI Prolog不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用SWI-Prolog JPL库,但是我遇到问题。



我试图让我的Eclipse项目访问JPL,但是当我尝试启动程序时,我会收到以下错误:

 线程中的异常AWT-EventQueue-0java我们将jpl.jar复制到项目目录,并将其设置在构建路径上。另外,我传递以下VM参数:

  -Djava.library.path =C:\Program Files\Prolog \bin

(这是安装Prolog的目录)。



我做错了什么?






编辑:我似乎没有libpl.dll在我的电脑上的任何地方可能这会导致我的问题吗?

解决方案

jvm.dll 您的运行的JDK / JRE必须在您的系统 PATH 中可用,以便 jpl.dll 您正在加载您的JPL安装和正在运行的JVM之间的32位/ 64位一致性。 - 所以不要尝试任何混合。



这里是旧的安装文档



对于此类安装支持,您应该使用JPL邮件列表。


I'm trying to use the SWI-Prolog JPL library, but I'm having problems.

I'm trying to let my Eclipse project access JPL, but when I try to start the program, I get the following error:

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no jpl in java.library.path

I copied the jpl.jar into my project directory, and I set it on the build path. Additionally, I pass the following VM arguments:

-Djava.library.path="C:\Program Files\Prolog\bin"

(That's the directory where Prolog was installed).

What am I doing wrong?


EDIT: I don't seem to have the libpl.dll anywhere on my computer. Could this be causing my problem?

解决方案

The jvm.dll of your running JDK/JRE must be available in your system PATH so that jpl.dll from java.library.path loads properly.

You have to take care to 32 bits / 64 bits consistency between your JPL installation and your running JVM - so do not try any mix.

Here is information from an old installation doc.

For such installation support, you should use the JPL mailing list.

这篇关于JPL / SWI Prolog不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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