Interfacing with Java

Question:
I'm having basic trouble in getting Java to work. What should I do?

First try to get a simple "Hello world" program to work that does not use Jasper. A large portion of the support questions we get are unrelated to the SICStus Java interface. Once you can compile and run your own Java classes it should be relatively easy to get Jasper to work.

Read the Release Notes and the User's Manual and the section in them related to Jasper.

Question:
I want to use Jasper from an applet, but my browser won't let me. What's wrong?

Jasper is built as a layer on top of SICStus' C-Prolog interface and hence Jasper needs to be able to call methods declared as native (i.e., C functions). For security reasons, this is prohibited in applets.

This is a serious restriction, and future versions of Jasper will most likely allow connecting to the Prolog engine via sockets. In the interim, there are some examples on this at the Don't Panic page at http://www.sics.se/sicstus/.

Question:
I get the message "Failed to locate bootfile" when running java ClassUsingJasper. What's wrong?

The answer to this (and related questions) can be found in the Jasper chapter of the Release Notes, section "Getting Started".