<br><br><div class="gmail_quote">2010/1/22 Tobias Kuhn <span dir="ltr">&lt;<a href="mailto:kuhntobias@gmail.com">kuhntobias@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Jean-Marc,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I saw some similar messages in the SWIPL list, about the LD_PRELOAD<br>
environment variable ...<br>
</blockquote>
<br></div>
Yes, under Linux the variable LD_PRELOAD has to be set to the location of the JPL library, e.g. &quot;/usr/lib/pl-5.8.3/lib/i386-linux/libjpl.so&quot;.<br></blockquote><div><br>This is only part of the story, because setting LD_PRELOAD causes the JRE libraries to become unavailable.<br>
<br>After looking at run_preloaded in the SWI Prolog distribution in :<br>pl-5.8.3/packages/jpl/examples/java/env.sh<br><br>I came with this shell fragment that works for me :<br><br><span style="font-family: courier new,monospace;">eval `swipl -dump-runtime-variables`</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/$PLARCH:$LD_LIBRARY_PATH</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/$PLARCH/server:$LD_LIBRARY_PATH</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">export LD_PRELOAD=$PLBASE/lib/$PLARCH/libjpl.so</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">java -Djava.library.path=$PLBASE/lib/$PLARCH \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">     -jar $HOME/apps/jetty-runner*.jar webapps.war &amp;</span><br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
New todo item for myself: Write this to the README file of AceWiki.<br>
<br>
<br>
Cheers,<br><font color="#888888">
Tobias<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Jean-Marc Vanel<br>Consulting, services, training,<br>Rule-based programming, Semantic Web<br><a href="http://jmvanel.free.fr/">http://jmvanel.free.fr/</a><br>+33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16<br>
( we rarely listen to voice messages, please send a mail instead )<br>