java - How to solve "Symbol lookup error" by using JPL on Ubuntu11.04? -


i'm coding program in java , connect prolog. thus, decided use jpl. use jpl on windows vista. later, have change os platform ubuntu 11.04. unfortunately, there error:

symbol lookup error: /usr/lib/swi-prolog/lib/i386/libjpl.so: undefined symbol: pl_is_initialised

environment:

  1. ubuntu 11.04
  2. java version 1.6.0_24
  3. eclipse galileo version: 3.5.2
  4. swi-prolog version 5.10.1 i386
  5. jpl (apt-get install swi-prolog-java)
  6. family.java + family.pl

i explain steps of working , problems follows. step1: install swi-prolog + jpl using synaptic package manager swi-prolog installation

step2: run family.java , found error jpl not found error

step3: configure library path @ vmarguments set vmarguments step4: run again, there error /usr/lib/jvm/java-6-sun-1.6.0.24/bin/java: symbol lookup error: /usr/lib/swi-prolog/lib/i386/libjpl.so: undefined symbol: pl_is_initialised step5: config environment error still same. set environment arguments

the method used solve problem in step 3 , 5 searched internet. can not find other solutions try. have idea?
in advance.

you have config ld_library_path, think. try add location of so-library file. , make sure, system.loadlibrary(); call relative.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -