[ previous section | contents | next section ]
Here's how to install the devPad environment and runtime classes:
/java /jdk1.1/java \javaos2 \jdk1.1\javaIt will contain directories such as 'bin' and 'lib'.
[Note: if your Java home directory is on a CD-ROM, or otherwise inaccessible, you'll need to choose a different directory and set up a CLASSPATH environment variable that points to it. Consult your Java toolkit documentation for details on how to do this. You'll also need to set the devPad home directory -- see below.]
This should add the .zip file for the devPad environment classes (devPad.zip) and the environment's preferences and runtime documentation files (devPad.icons/*, devPad.properties, ISOlat1.ent and nodoc.html) to the Java 'lib' directory.
In addition, some sample scripts should have been added to the Java 'bin' directory:
devPad.cmd -- the devPad environment command in Rexx dp.cmd -- shorter name for devPad.cmdThe .cmd files are simple batch scripts for making it easier to use the compiler. You don't have to use these, but they save some typing. They should require little modification to run under your platform.
e:\javaos2\lib\devPad.zipThe procedure for setting the CLASSPATH variable depends on your operating system (and there may be more than one way). Here are some examples:
set classpath=.;f:\javaos2\lib\devPad.zipIn this example, the first segment of the value (before the semicolon) lets classes in the current directory be found, and the second segment includes the classes needed by devPad. Both environments normally include the standard Java classes automatically.
CLASSPATH=and changes for re-boot or opening of a new window should be placed in your .login (Bourne) or .profile (Korn) file:$CLASSPATH export CLASSPATH
setenv CLASSPATHand changes for re-boot or opening of a new window should be placed in your .cshrc file:$CLASSPATH
If you are unsure of how to do this, check the documentation you have for installing the Java toolkit.
To check installation, change directory to the devPad documentation directory, then (being very careful to get the case of letters correct):
java devPad.devPadMain Welcome.padThis should starts the devPad environment, and open the Welcome workspace.
With the sample scripts provided (devPad.cmd), or the equivalent in the scripting language of your choice, the steps above can be combined into a simple single command:
devPad Welcome.pad
This package also includes a trivial 'dp.cmd' file that simply passes on its arguments to devPad; 'dp' is just a shorter name that saves keystrokes, so for the last example you could type:
dp Welcome.pad
Note that scripts may be case-sensitive; unless running the OS/2 Rexx script, you will probably have to spell the name of the program exactly as it appears in the filename.
If you need to put the devPad.properties and runtime documentation files into a directory other than the 'lib' directory below the Java home directory, then you can set an alternative directory path that devPad will use to find the messages file.
This alternative directory is called the devPad home directory and may be set using the -D option on the java command that invokes the devPad environment. For example (perhaps for an OS/2 or Windows system):
java -Ddevpad.home=f:\dphome devPad.devPadMain Welcome.padwhich sets the directory path 'f:\dphome' as the devPad home directory. With this setting, devPad would look for the properties file as:
f:\dphome\lib\devPad.properties
In other words, devPad expects its properties and runtime documentation files to be in the 'lib' directory below the devPad home directory, and the default devPad home directory is the Java home directory.
If you are using the devPad.cmd on OS/2 to invoke the compiler, then this -D option will be set up automatically if the path is set as the value of an environment variable called DEVPAD_HOME.
[ previous section | contents | next section ]
Copyright (c) Martin Lafaix, 1998. All rights reserved. ©