Installation

In order to use the Java interface, users must ensure that the environment variables BPDIR, CLASSPATH, and PATH (Windows) or LD_LIBRARY_PATH (Solaris) are set correctly. For a Windows PC, add the following settings to autoexec.bat:
      set BPDIR=c:\BProlog
      set PATH=%BPDIR%;%PATH%
      set classpath=.;%BPDIR%\plc.jar
For a Solaris or a Linux machine, add the following settings to .cshrc.
      set BPDIR=$HOME/BProlog
      set LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BPDIR
      set CLASSPATH=.:$BPDIR/plc.jar
The environment variables must be properly set. The archive file plc.jar, which is located in the directory $BPDIR (or %BPDIR%), stores the bytecode for the class bprolog.plc.Plc, which implements the Java interface. The file libbp.so (bp.dll), which is also located in the directory $BPDIR (or %BPDIR%), is a dynamic link file for B-Prolog's emulator.



Neng-Fa Zhou 2013-01-25