Previous: Java Threads, Up: lib-jasper [Contents][Index]
The Jasper library module is the Prolog interface to the Java
VM. It corresponds to the se.sics.jasper
package in Java. It is
loaded by executing the query:
| ?- use_module(library(jasper)).
The Jasper library fully supports multiple SICStus runtimes in a process.
Jasper cannot be used when the SICStus runtime is statically linked to
the executable, such as when using spld --static
.
The following functionality is provided:
jasper_initialize/[1,2]
, jasper_deinitialize/1
).
jasper_new_object/5
).
jasper_call/4
).
jasper_create_global_ref/3
, jasper_delete_global_ref/2
,
jasper_delete_local_ref/2
). Global references are used to prevent
the JVM from garbage collecting a Java object referenced from
Prolog.
library('jasper/examples')
).
• Jasper Method Call Example | Jasper Method Call Example | |
• Jasper Library Predicates | Jasper Library Predicates | |
• Conversion between Prolog Arguments and Java Types | Conversion between Prolog Arguments and Java Types | |
• Global vs. Local References | Global vs. Local References | |
• Handling Java Exceptions | Handling Java Exceptions | |
• Deprecated Jasper API | Deprecated Jasper API |