I'm interested in using JPL with java, but an error message is prompting like 'package jpl does not exist' while trying to compile the java program. How do i import jpl to java?
Asked
Active
Viewed 3,571 times
2 Answers
3
You need to do sudo apt-get install swi-prolog
and then sudo apt-get install swi-prolog-java

evandrix
- 6,041
- 4
- 27
- 38

JOHANNES_NYÅTT
- 3,215
- 7
- 20
- 24
2
You need to download the JPL package/s , then make it accessible to your class(I'm not exactly sure where to put it, but probably in the /lib of your java directory) . See here : http://www.swi-prolog.org/download/stable
More info: How to use JPL (bidirectional Java/Prolog interface) on windows?

Community
- 1
- 1

Caffeinated
- 11,982
- 40
- 122
- 216
-
the link you posted has the download link to jpl but that is not working. – Venkata Sep 26 '11 at 16:56
-
do i need to download swi-prolog from here> – Venkata Sep 26 '11 at 17:13
-
Yes, this is it! Choose your OS . BTW please vote up for me :) – Caffeinated Sep 26 '11 at 17:14
-
Thanks! Ok if it's installed you just need to find the package, then import it correctly in your Java class. – Caffeinated Sep 26 '11 at 17:21
-
thats what my problem is...though i have the jpl package, i'm still facing the error called 'package jpl does not exist' – Venkata Sep 26 '11 at 17:27
-
Try this for help - http://ubuntuforums.org/showthread.php?t=282429 this - http://www.daniweb.com/software-development/java/threads/105863 . basically I think you need to find your "build path" , add the external jar files. – Caffeinated Sep 26 '11 at 17:30