Java Setup

Installing the JDK

You will find the latest Java Development Kit software and documentation on SUN's web site:

http://www.javasoft.com/
(We usually download it to the Adams public drive in the folder p:\csdshare\Java so you can simply run the install from there on an MS Windows PC.)
  1. To install the JDK, run the install program: P:\CSDSHARE\Java\JDK12\jdk12-win32.exe telling it to install into directory  "c:\jdk12".
  2. Set your Windows path to contain the JDK bin directory: (For Win95, add it to the autoexec.bat file==>

  3. "set PATH=%PATH%;c:\jdk1.2\bin;")
  4. boot your PC
  5. Congratulate yourself - you are now ready to compile and run Java programs!

  6. (The JDK programs are run from a DOS box.)


Installing the JDK documentation files

  1. If the version you want is already unzipped on the public drive, just copy the "docs" directory to your "jdk1.2" directory. If not, you need to unzip it following these directions:
  2. Unzip the documentation zip file (P:\CSDSHARE\Java\JDK12\jdk12-doc.zip) in the parent directory of the jdk1.2 directory. Unzip the file with preservation of directory structure. This adds the "docs" directory to the JDK installation so you can access the sample applications directly from the documentation web pages.
  3. If you used another name than jdk1.2 for your JDK install, you will need to move the "docs" directory to it because that directory name is hardcoded in the zip file.
  4. Congratulate yourself again and point your browser to the JDK documentation file: "c:\jdk1.2\docs\index.html"


Installing the NetRexx compiler

The lastest version of the NetRexx compiler and documentation can be found on the IBM web site:

http://www2.hursley.ibm.com/netrexx/
(We usually download it to the Adams public drive in the folder p:\csdshare\Java\NetRexx so you can  install from there on an MS Windows PC.)
  1. Unzip the NetRexx tools zip file in your installed JDK directory: "P:\CSDSHARE\Java\NetRexx\NetRexx_1.148\NetRexx\nrtools.zip ==> jdk1.2"

  2. Unzip it with directory preservation as it adds files to the bin and lib subdirectories.
  3. Add the NetRexx compiler & runtime to the environment variable CLASSPATH:

  4. (also add the Java compiler tools jar file to the classpath)
    "set classpath=.;c:\jdk1.2\lib\NetRexxC.zip;c:\jdk1.2\lib\tools.jar"
    This is done in the "autoexec.bat" file for Windows 95/98.
  5. Boot the PC.
  6. Congratulate yourself again and point your browser to the NetRexx documentation file:

  7. file:///P|/CSDSHARE/Java/NetRexx/NetRexx_1.148/NetRexx/netrexx.htm
Note: the commands to use the NetRexx compiler are the following (see also the above document):
  1. To compile a NetRexx source file into a Java class file:  nrc NetRexx-source-filename
  2. To compile and execute a NetRexx source program:  nrc -run NetRexx-source-filename
  3. To translate a NetRexx source file into Java code and save it:  nrc -keep NetRexx-source-filename
Note: There is a reference to the "out of environment space" problem in the documentation:
 An 'Out of environment space' message when trying to set CLASSPATH under Win95-DOS can be remedied by
adding /e:4000 to the 'Cmd line' entry for the MS-DOS prompt properties (try 'command /?' for more information).