Next: , Previous: Getting Started, Up: lib-jasper


10.18.3 Calling Prolog from Java

Calling Prolog from Java is done by using the Java package se.sics.jasper. This package contains a set of Java classes, which can be used to create and manipulate terms, ask queries and request one or more solutions. The functionality provided by this set of classes is basically the same as the functionality provided by the C-Prolog interface (see Mixing C and Prolog).

It is possible to debug the Prolog code using the Prolog debugger, either from the command line or from the SICStus Prolog IDE (SPIDER), see Examples of Debugging Runtime Systems.

The usage is easiest described by some examples.


Send feedback on this subject.