Installation

To use the Java interface, one has to 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
and for a Solaris or 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 in the directory $BPDIR (or %BPDIR%) stores the byte code for the class bprolog.plc.Plc that implements the Java interface, and the file libbp.so (bp.dll) in the same directory is a dynamic link file for B-Prolog's emulator.



Neng-Fa Zhou 2012-01-03