I'm coding a program in Java and I would like to connect to Prolog. Thus, I decided to use JPL. It is perfectly to use JPL on Windows Vista. Later, I have to change the OS platform to be Ubuntu 11.04. Unfortunately, there is an error:
symbol lookup error: /usr/lib/swi-prolog/lib/i386/libjpl.so: undefined symbol: PL_is_initialised
Environment:
- Ubuntu 11.04
- Java version 1.6.0_24
- Eclipse Galileo Version: 3.5.2
- SWI-Prolog version 5.10.1 for i386
- Jpl (apt-get install swi-prolog-java)
- Family.java + family.pl
I explain steps of working and problems as follows. step1: Install swi-prolog + jpl using Synaptic Package Manager
step2: Run Family.java , found an error
step3: Configure the library path at VMarguments step4: Run again, there is an 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: I also config the environment but the error still the same.
The method that I used to solve the problem as in step 3 and 5 I searched from the internet. I can not find other solutions to try. Does anyone have any idea?
Thanks in advance.