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.)
-
To install the JDK, run the install program: P:\CSDSHARE\Java\JDK12\jdk12-win32.exe
telling it to install into directory "c:\jdk12".
-
Set your Windows path to contain the JDK bin directory: (For Win95, add
it to the autoexec.bat file==>
"set PATH=%PATH%;c:\jdk1.2\bin;")
-
boot your PC
-
Congratulate yourself - you are now ready to compile and run Java programs!
(The JDK programs are run from a DOS box.)
Installing the JDK documentation files
-
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:
-
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.
-
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.
-
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.)
-
Unzip the NetRexx tools zip file in your installed JDK directory: "P:\CSDSHARE\Java\NetRexx\NetRexx_1.148\NetRexx\nrtools.zip
==> jdk1.2"
Unzip it with directory preservation as it adds files to the bin and
lib subdirectories.
-
Add the NetRexx compiler & runtime to the environment variable CLASSPATH:
(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.
-
Boot the PC.
-
Congratulate yourself again and point your browser to the NetRexx documentation
file:
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):
-
To compile a NetRexx source file into a Java class file: nrc NetRexx-source-filename
-
To compile and execute a NetRexx source program: nrc -run NetRexx-source-filename
-
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).