Hello,
I built and installed SWI Prolog from source (
SWI-Prolog source for 7.6.4) on an amazon-linux-ami. Please see my system info below just in case.
Command line swipl works just fine (see below). But I got "[FATAL ERROR: at Sun Apr 22 03:02:12 2018 Could not find system resources]" with JPL. For example,
String prologVersion = ((Term) (new Query("jpl_pl_lib_version(V)")).oneSolution().get("V")).name();
Any help will be greatly appreciated.
--------------------------------------------------------------------------
Here are my system and environment info.
$ uname -a
Linux
dev.xyz.com 1.2.3.4.amzn1.x86_64 #1 SMP Mon Mar 5 19:00:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
$ swipl --version
SWI-Prolog version 7.6.4 for x86_64-linux
PATH=/home/xyz/swipl/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin
LD_LIBRARY_PATH=/home/xyz/swipl/lib/swipl-7.6.4/lib/x86_64-linux:/usr/lib/jvm/java/jre/lib/amd64:/usr/lib/jvm/java/jre/lib/amd64/server
SWI_HOME_DIR=/home/xyz/swipl
----------------------------------- Command line swipl ------------------------------------------
$ swipl
Welcome to SWI-Prolog (threaded, 64 bits, version 7.6.4)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For built-in help, use ?- help(Topic). or ?- apropos(Word).
1 ?- current_prolog_flag(home, Home).
Home = '/home/xyz/swipl/lib/swipl-7.6.4'.
2 ?- jpl_pl_lib_version(V).
V = '7.4.0-alpha'.
--------------------------------------
Regards,
Dagobi