Skip to content
Sebastian Sardina edited this page Oct 11, 2018 · 30 revisions

JPL 7.4+ - Java - SWI Prolog Interface

JPL is a "library using the SWI-Prolog foreign interface and the Java jni interface providing a bidirectional interface between Java and Prolog that can be used to embed Prolog in Java as well as for embedding Java in Prolog. In both setups it provides a reentrant bidirectional interface."

The objectives of JPL are to:

  • enable Prolog applications to exploit any Java classes, instances, methods etc. (without requiring any wrappers, metadata etc. to be set up first);
  • enable Java applications to manipulate any Standard Prolog libraries, predicates, etc. (without requiring any wrappers, metadata etc. to be set up first);
  • enable hybrid Prolog+Java applications to be designed and implemented so as to take best advantage of both language systems, and to be testable, debuggable, maintainable.

Wiki Outline

  1. Setup and Install
    • JPL-under-Mac-OS: how to set it up under Mac OS.
    • [Developing-JPL][Developing-JPL]: how to set-up a development install for JPL.
  2. Getting-Started:-An-Example-Tutorial: a walkthrough how one would use JPL from Java.
  3. Specific Information:
  4. Subtle/Advanced Aspects:

Important Links