JPL crashes my entire JVM
"Bao" <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Hi All:
I am running a Java project using JPL, I've compiled the source to get the libswipl a shared library according to https://code.google.com/p/javanaproche/wiki/HowToJPL
and added in the jpl.jar and have the java.library.path point to libswipl but when I was calling
if (!Query.hasSolution("consult('"+queryFilePath+"').")) {
throw new Exception();
}
else {
Compound query = new Compound( "myPredicate", new Term[]{X,Y,Z});
Query qu = new Query(query);
Hashtable[] tables = qu.allSolutions();
}
The jvm crashes, however, I did not know where exactly the error occurs since it did not occur every time so it's very difficult for me to catch it in debugging. Does anybody have any idea?
I am running the project on Ubuntu 12.04 LTS 64 bit.
Thanks a lot.
-------------- next part --------------
HTML attachment scrubbed and removed