Personalities/Java compiler INSTALLATION NOTES VERSION 0.1.10 December 4, 1998 =========================== What you need: - pjc-. where is the version of the PJC compiler you are trying to install (i.e. 0_1_10) is one of the compression formats supported (i.e. zip, jar, gz, Z) - Demeter/Java's demjava.jar runtime library. make sure you have demjava.jar installed and it isa accesible by the java interpreter. Unix installation: (1) Uncompress the pjc-. file in the directory where you want the PJC compiler to live. For example, if you want to install the compiler on the /user/local/ subtree, and the file is in the 'compress' format (.Z) then you would do something like: $ cd /tmp $ uncompress pjc-0_1_10.tar.Z $ cd /user/local $ tar xvf /tmp/pjc-0_1_10.tar This step will create the appropriate PJC subtree (/usr/local/pjc-0_1_10 in our example). This directory is then the PJC_HOME directory. (2) Add ${PJC_HOME}/bin to your PATH set, so that you can run the 'pjc' script from anywhere in the filesystem. (3) Modify ${PJC_HOME}/bin/pjc to update the definition of the PJC_HOME variable. Windows installation: (1) Uncompress the pjc-. file into the directory you want this version of PJC to live. Use any of the more popular utilities, such as WinZip (from http://www.winzip.com) to uncompress and install. For example, if you would like PJC to live under the C:\ directory, simply extract the file onto C:\ and the appropriate PJC directory (and subdirectories) should be generated. In our example, you would get C:\pjc-0_1_10. This directory is now referred as PJC_HOME (2) Add %PJC_HOME%\bin to your PATH environment variable so you can access the 'pjc.bat' script from wherever in the filesystem. Depending on your operating system, there are two ways to do this: - Windows 95/98: modify you C:\AUTOEXEC.BAT file and add the following line PATH=%PATH%:\BIN where is the full description of the PJC_HOME directory. Continuing with our running example, you would add the following line: PATH=%PATH%:C:\PJC-0_1_10\BIN - Windows NT: Select 'Start', 'Settings', 'Control Panel', 'System', and then click on the 'Environment' tab. Find the PATH variable definition in the "User Variables" section of the dialog box and add the PJC_HOME's bin directory, as explained in the Windows 95/98 section. (3) Edit %PJC_HOME%\bin\pjc.bat to update the definition of the PJC_HOME (and DEMJAVA_HOME if applicable) variables. In our example, you would modify pjc.bat to read: @set PJC_HOME=C:\PJC-0_1_10 Testing the installation: After installing PJC, make sure you refresh the environment as required by your operating system and then try typing pjc at the command prompt. You should see the PJC banner. If you don't make sure your PATH variable is set properly. If you have problems, please contact: d.rodrigo@computer.org danielgandara@mail.com lblando@gte.com