After updating .bash_profile to:
export JAVA_HOME=/usr/java/default
PATH=$JAVA_HOME/bin:$PATH:$HOME/.local/bin:$HOME/bin:$HOME/Programs/BaseX/bin
CLASSPATH=.:$HOME/Programs/BaseX/Base.jar:$HOME/SGD:$HOME/Downloads/Prolog/swipl-devel/packages/jpl/jpl.jar
export PATH
export CLASSPATH
the java-part compiles without problems and a jpl.jar is build in /home/bengbers/Downloads/Prolog/swipl-devel/packages/jpl/
The build-process itself however fails when trying to create library(jlp) "% Loading library(jpl) ......................... FAILED
Warning: Cannot load required shared library"
In packages/jpl/config.logthere are some lines reporting that conftest.c can not becompiled.
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.c: In function 'main':
conftest.c:55:21: error: expected expression before ')' token
conftest.c:22:9: error: unknown type name 'not'
conftest.c:22:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'universal'
conftest.c:22:15: error: unknown type name 'universal'
conftest.c: In function 'main':
conftest.c:28:4: error: unknown type name 'not'
conftest.c:28:12: error: expected
Running the examples produces this output:
JPL demo: Exceptions
calling
?- X is Y.
in Prolog to force a Prolog 'instantiation_error' exception,
which should be returned via Java as an uncaught org.jpl7.PrologException in thread "main":
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/bengbers/lib/swipl-7.3.18/lib/x86_64-linux/libjpl.so: libjsig.so: kan gedeeld objectbestand niet openen: Bestand of map bestaat niet
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.jpl7.JPL.loadNativeLibrary(JPL.java:97)
at org.jpl7.fli.Prolog.<clinit>(Prolog.java:59)
at org.jpl7.Query.open(Query.java:280)
at org.jpl7.Util.textToTerm(Util.java:120)
at org.jpl7.Query.<init>(Query.java:164)
at org.jpl7.Query.hasSolution(Query.java:760)
at Exceptions.main(Exceptions.java:13)
I have appended the outpuf from the build-process. Hope this helps.
Cheers -- Ben (who likes working with Fedora)
Op maandag 14 maart 2016 09:27:31 UTC+1 schreef Jan Wielemaker: