JPL_DEP_ROOT=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPL_DEP_ROOT:$JPL_DEP_ROOT/server
LD_LIBRARY_PATH=~/bin:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
--
You received this message because you are subscribed to the Google Groups "SWI-Prolog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swi-prolog+...@googlegroups.com.
Visit this group at https://groups.google.com/group/swi-prolog.
For more options, visit https://groups.google.com/d/optout.
Thanks for your answer. I have done according to your suggestions but it doesn't work. :( Thanks |
/usr/lib/swipl-5.10.1/lib
/usr/lib/swipl-5.10.1/lib/x86_64-linux
/usr/lib/swipl-5.10.1/lib/i686-linux
Hi All,
I am also stuck with this exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jpl in java.library.path
My working environment is
IDE- EClipse mars 4.5 ,Java 8, Swipl -7.2.3, OS: Windows 10
I was successfully running prolog queries from eclipse IDE till yesterday but suddenly it has stopped working and started throwing this exception.
i have jpl.jar added at below paths
Image eclipse shows external library refered in source code
Image env show environment variable set in code
Path below source code also shows environment var path refering to Swipl
Also classpath refers to jpl.jar as
Classpath=C:\Program Files\swipl\lib\jpl.jar
Source code is
public class Jpc {
public static void main(String args[])
{ String t1="consult('C:/Users/researcher/Desktop/prolog basics/stat.pl')";
Query q1=new Query(t1);
System.out.println(t1+" "+ (q1.hasSolution() ? "success" : "not connected" ));
}
}
and output of code is
path C:\Program Files\Java\jdk1.8.0_65\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32; C:/Program Files/Java/jdk1.8.0_65/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0_65/bin/../jre/lib/amd64;C:\Program Files\Java\jdk1.8.0_65\bin; c:\php; c:\Apache24; c:\Apache24\bin; C:\Program Files\swipl\bin;C:\Program Files\MySQL\MySQL Utilities 1.6\;G:\Tools\eclipse-jee-mars-R-win32-x86_64\eclipse;;.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jpl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1864)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.jpl7.JPL.loadNativeLibrary(JPL.java:79)
at org.jpl7.fli.Prolog.<clinit>(Prolog.java:41)
at org.jpl7.Query.open(Query.java:260)
at org.jpl7.Util.textToTerm(Util.java:102)
at org.jpl7.Query.<init>(Query.java:144)
at vaccine.jpc.main(jpc.java:23)
Thus, at all possible places , i have added jpl.jar but suddenly it has stopped working.
could anyone please help me to get out of this situation.
Thanks in advance!!