Contents | Prev | Next | Index


Installation

Before installing Canterbury Pascal for JVM, make sure there is a fully pre-installed Java Development Kit 1.1.x or Java-2 SDK 1.2.x or later available on the target machine.

Canterbury Pascal for JVM is distributed in a ZIP-file named pascal3.zip. Copy or download this file to a temporary directory. From there unzip to the desired target directory. If you don't yet have an UNZIP utility for doing so, get one from www.winzip.com or www.pkware.com.We recommend using the name com.mhccorp for the target directory. It contains among others, in reversed order, the internet domain name components for the web site of mhccorp.com and as such should form a unique target directory name for the installation of software products from that company.

If installing to a Win32 or OS/2 platform, the target directory should contain the following files:

pas3.zip
mhc\compiler\pas.lic mhc\compiler\runtime\pas\*.pas mhc\pas\samples\*.* mhc\compiler\doc\*.html mhc\compiler\doc\*.gif
(compiler)
(user licence if registered)
(runtime)
(sample programs)
(documentation)

If installing to a UNIX, Linux, AIX, Solaris or MacOS platform, the target directory should contain the following files:

pas3.zip
mhc/compiler/pas.lic mhc/compiler/runtime/pas/*.pas mhc/pas/samples/*.* mhc/compiler/doc/*.html mhc/compiler/doc/*.gif
(compiler)
(user licence if registered)
(runtime)
(sample programs)
(documentation)

Finally, some permanent values are to be added to the java.class.path system property. On most operating systems this is done by adding them to an environment variable called CLASSPATH.

Win32 or OS/2:
CLASSPATH=.\;<install-directory>\pas3.zip;<install-directory>;<other>
Linux, Solaris, AIX or other UNIX systems:
CLASSPATH=./:<install-directory>/pas3.zip:<install-directory>:<other>
Mac OS:
Use JBindary (part of MRJ, version 2.0 or better) with the following settings:
Command Line Panel:
Optional Parameter: <Pascal-source-file> -m
Class Name: mhc.compiler.pas
Redirect stdout: <to a log file>
Redirect stdin:
<none>
Class Path Panel:
Add manually File: file:///<install-directory>/pas3.zip
Add manually File:
file:///<install-directory>
Properties Panel:
Add: user.dir = <working-directory>
Other platforms:
Do whatever is needed to permanently update the java.class.path property with the 3 required values:
 
<working-directory>
,
 
<install-directory>/pas3.zip
,
 
<install-directory>
.

Example: If, on a Windows-95/98 machine, Pascal has been installed to a directory at "c:\stuff", and there is a pre-installed Java-2 SDK 1.2 at "c:\jdk1.2", then CLASSPATH must have the following values:

CLASSPATH=.\;c:\stuff\pas3.zip;c:\stuff;c:\jdk1.2\jre\lib\rt.jar;


Contents | Prev | Next | Index

Canterbury Pascal for JVM  (Last documentation update Sep 02, 2004)
Copyright © 1999-2004 J.Neuhoff - mhccorp.com  . All rights reserved.
Please send any comments or corrections to neuhoff@mhccorp.com