Questions tagged [interprolog]

Interprolog is a Java frontend for Prolog, currently supporting XSB, SWI, and YAP.

Interprolog is a Java frontend for Prolog, currently supporting XSB, SWI, and YAP.

7 questions
3
votes
1 answer

Java and Prolog - Interprolog

I am currently trying to set up interprolog(see http://www.declarativa.com/interprolog/) and i've followed the steps on the site, but now I'm wondering how i can use interprologs classes from my eclipse ide? Do i need to import the classes into my…
KP65
  • 13,315
  • 13
  • 45
  • 46
2
votes
3 answers

Interprolog and SWI-Prolog

I have set up and installed both interprolog and swi prolog on my linux machine following the instructions here :Interprolog with SWI instructions on Linux I have edited the unixVariables.sh to contain the path of java and swi-prolog(pl) executables…
KP65
  • 13,315
  • 13
  • 45
  • 46
2
votes
2 answers

Prolog - Access Control?

I am currently using interprolog - which is basically java with a prolog backend, allowing both java and prolog calls from each other respectively. Now If i had say a frontend GUI coded in java swing, say a login dialog, which requested a username…
KP65
  • 13,315
  • 13
  • 45
  • 46
1
vote
0 answers

Eclipse XSB InterProlog Setup

I'm trying to set up InterProlog in eclipse. My path variable already has the path to jdk1.7 and I already have xsb installed. I attached interprolog.jar as an external jar, added the xsb to my path variable…
mbuff24
  • 425
  • 4
  • 14
0
votes
1 answer

Java/Prolog help - trouble shooting

I'm having a pretty rough time trying to make use of interprolog I have some code, trying to call a prolog command and the problem is the actual loading of my prolog database. Here is the code: myEngine = new NativeEngine(); …
KP65
  • 13,315
  • 13
  • 45
  • 46
0
votes
2 answers

Java help - StringIndexOutOfBoundsException - String index out of range: -1

I'm having trouble with some of my code and I really cant trouble shoot this error. I'm using Interprolog(Java+Prolog) see here here is the stacktrace: Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index…
KP65
  • 13,315
  • 13
  • 45
  • 46
0
votes
3 answers

Prolog - SWI specifically - where is pl located?

I'm trying to set up an environment with interprolog and SWI prolog, interprolog needs the location of swi's "pl" but i cant find it. All i can find is swipl or plrc and neither work with interprolog. If i type pl into the terminal(this should run…
KP65
  • 13,315
  • 13
  • 45
  • 46