Appendix

Examples Listing

We have used the following directory layout for the sources (Java classes and Prolog texts) and the Jekejeke Prolog runtime library (interpreter.jar) during compilation. The Jekejeke Prolog runtime library can be downloaded from the Jekejeke web site (www.jekejeke.ch):

    XXX.java    % Java classes
    XXX.p       % Prolog texts
    lib
     +--- interpreter.jar

The examples can be compiled with the following command line on the windows platform. On the Linux and Mac OS platform the backslash (\) directory separator needs to be replaced by the slash (/). The command needs to be put on one line and the single standing backslashes (\) need to be removed so that the command can be issued:

    javac -sourcepath . \ 
          -cp lib\interpreter.jar \
          -d classes \
          XXX.java

We have used the following directory layout for the byte code (compiled Java classes), the resources (Prolog texts) and the Jekejeke Prolog runtime library (interpreter.jar) during execution. The byte code is automatically placed in the specified location by the previous compi-lation command line. The location of the Jekejeke Prolog runtime library has not been changed. The resources (Prolog texts) eventually need to be manually copied:

    classes
     +--- XXX.class   % Compiled Java classes
     +--- XXX.p       % Prolog texts
    lib
     +--- interpreter.jar

The examples can then be executed by the following command line on the windows platform. On the Linux and Mac OS platform the semicolon (;) path separator needs to be replaced by the colon (:):

    java  -cp classes;lib\interpreter.jar \
          XXX         % Main Java class name

This document does not contain the source code of the test programs. A browsable version of the source code of the test programs can be found on the following web site:

www.jekejeke.ch/idatab/doclet/prod/en/docs/05_run/10_docu/03_interface/09_appendix/package.html

Further the source code is also bundled in the suprun.zip when downloading the Jekejeke Prolog runtime library from the web site.


Kommentare