Prolog+CG 2.0

Installation prerequisites

You need a version of Java 1.4 or 1.5 to run Prolog+CG 2.0.

Installation instructions

  1. Download the latest ZIP file.

  2. Unpack it anywhere on your harddrive using a ZIP program such as UltimateZIP or InfoZIP. Both are excellent freeware programs.

    • If on Windows: Edit the start.bat file to contain the path to the Java 1.4/1.5 executable (see below). Then double-click on start.bat to start the program.

    • If on Unix/MacOS: Create a shell script of shortcut which contains the command line:

      /substitute/the/right/path/to/java-binary/java -cp . PrologPlusCG/PrologPlusCG

      The current working directory should be the root of the contents of the ZIP file (i.e., PPCG/)

Editing start.bat

On Windows, a start.bat template file is provided in the distribution. You must edit this so that it includes the path to the Java 1.4/1.5 java.exe executable.

  1. Locate the java.exe executable. If you are unsure of where it is, search for it using Windows Explorer. Note that some versions of Internet Explorer contains a java.exe executable, but this cannot be used. Your java.exe must be specific to Java 1.4/1.5.

  2. Right-click the start.bat file in the root of the distribution (i.e., PPCG\).

  3. Select "Edit". Notepad or similar will pop up.

  4. The line to edit is:

    java.exe -cp . PrologPlusCG/PrologPlusCG

    For example, if the path to java.exe is:

    C:\j2sdk\bin\java.exe

    Then the line in start.bat must read:

    C:\j2sdk\bin\java.exe -cp . PrologPlusCG/PrologPlusCG