Go to the first, previous, next, last section, table of contents.


Jasper

The Jasper library module provides functionality for accessing the Java VM from Prolog. The current functionality is limited to calling methods using the standard foreign language interface. See section Mixing Java and Prolog. However, this will most likely be extended in the future.

The library does not yet define any predicates. However, it must be loaded to make sure that the JVM (the Java Virtual Machine) is loaded correctly and that the interface code has access to all relevant references to the JVM. It is loaded by the query

| ?- use_module(library(jasper)).

This will dynamically load the JVM into memory and initialize the JNI Invocation API.

There is also an directory of examples of how to use Jasper: library('jasper/examples').


Go to the first, previous, next, last section, table of contents.