6.2.2 UNIX

When library(jasper) is used to embed Java in a SICStus development system or run-time system, the run-time linker needs to be told where to find the Java libraries (e.g. libjvm.so). During installation, InstallSICStus will build either the sicstus executable or the jasper foreign resource so that it contains the necessary information; the details are platform dependent.

If you use spld to relink SICStus or to build a run-time system, you can use the command line option --resource=-jasper (note the minus sign). This tells spld to include the search path (rpath) in the executable needed to ensure that library(jasper) can find the Java libraries.

If you want to run sicstus with another Java than what was specified during installation, you can use spld without the --resources option to get a SICStus executable without any embedded Java paths. In this case, you need to set the environment variable LD_LIBRARY_PATH (or similar) appropriately. One example of this is to use the JDK 1.3 server version instead of the default (client) version.

Alternatively, you can use spld with the --resource=-jasper and --with-jdk=DIR options to generate a development system with embedded paths to another Java directory tree. This will only work if the alternative directory tree has the same structure as the JDK directory seen by InstallSICStus.