

If you have to use jpl, before compiling swi-prolog first create the file /etc/ld.so.conf.d/java.conf and add these two lines: /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server
After reboot and succesfull compilation you need to edit ~/.bash_profile. Add $HOME/bin to the PATH and add CLASSPATH:
PATH=$PATH:/usr/lib/jvm/java-8-openjdk-armhf/bin/:$HOME/bin
CLASSPATH=$HOME/lib/swipl-7.5.1/lib/jpl.jar
export PATH
export CLASSPATH
source ~/.bashrc
After rebooting, the jpl/java examples should now be working