Deploying for users - on Linux
Recall that to use JPL under linux one must have the following in place:
- C Native JPL Library
libjpl.so, generally found at
- Java API Jar file
jpl.jarin the Java
CLASSPATH, generally accessible from
- Prolog API as an SWI source module
$SWI_HOME_DIR/library, generally accessible from
JPL is generally distributed with official Linux. For example, in Ubuntu-based systems, JPL is provided via package
swi-prolog-java. That package includes the C library
libjpl.so, the Java API
jpl.jar, the Prolog module
jpl.pl as well as all documentation associated.
However, the official packages are often out-of-date. For Debian-based systems (Debian, Ubuntu, Mint, …) you can get the latest stable and development versions via this PPAs.
Finally, to be able to use JPL you may need to make sure that:
- Extend environment library
LD_PRELOADfor system to pre-load
- Extend environment variable
LD_LIBRARY_PATHto point to the directory where
- Make sure
jpl.jaris in your Java CLASSPATH. This is generally automatically done if environment variable
SWI_HOME_DIRis correctly set to
To install JPL from scratch (e.g., to compiling it in order to develop it further) please refer to the Developing JPL guide.