JPL Unsatisfied Link Error osx yosemite

157 views
Skip to first unread message

Dragos Dumitrache

unread,
Jul 8, 2015, 4:32:52 PM7/8/15
to swi-p...@googlegroups.com
Hello,

I am currently trying to run a .jar file on OSX Yosemite. I have installed SWI-Prolog with JPL using Homebrew.

I have set a SWI_HOME_DIR pointing to usr/local/Cellar/swi-prolog/7.2.2/libexec/lib/swipl-7.2.2/lib/x86_64-darwin14.3.0.

The JPL jar file is in usr/local/Cellar/swi-prolog/7.2.2/libexec/lib/swipl-7.2.2/lib/. I have also added the /bin and /lib to my PATH.

Now, whenever I run the java -Djava.library.path=/usr/local/Cellar/swi-prolog/7.2.2/libexec/lib/swipl-7.2.2/lib/x86_64-darwin14.3.0 -jar MyJarApp.jar, I get the following error:


Exception in thread "main" java.lang.UnsatisfiedLinkError: jpl.fli.Prolog.thread_self()I

 

 at jpl
.fli.Prolog.thread_self(Native Method)

 at jpl
.Query.open(Query.java:286)

 at jpl
.Util.textToTerm(Util.java:162)

 at jpl
.Query.<init>(Query.java:198)

 at jpl
.Query.hasSolution(Query.java:780)

 at
MainWindow.updateFile(MainWindow.java:433)

 at
MainWindow.init(MainWindow.java:204)

 at
MainWindow.<init>(MainWindow.java:44)
at
Main.main(Main.java:7)



 After two days of searching Google for it, came up with only one result over various websites, where the solution was to add the environment variable mentioned above to PATH. Has anyone encountered this and do you have any ideas on how to fix it? 

Kind regards and thank you,
Dragos

Vaughn

unread,
Oct 22, 2015, 3:55:03 PM10/22/15
to SWI-Prolog
Did you figure out how to solve this Dragos?
Reply all
Reply to author
Forward
0 new messages