Also Note: This document does not cover the Linux JDK.
IMPORTANT NOTE: When downloading files remember where you save them!
Download it from http://java.sun.com/products/jdk/1.1/download-jdk-windows.html
The CD-ROM that was included on the back of the back cover of your textbook comes with JDK 1.1.6. In the following instructions simply substitute JDK 1.1.6 for 1.1.8
The only required component is the JDK 1.1.8 (Java Development Kit 1.1.8), but if you wish you can also download the documentation and the JIT (Just In Time compiler - speeds up performance of code which is executed often in you programs) add-on.
Download it from http://www.horstmann.com/ccj1.html
You have many options here such as Windows Notepad, DOS EDIT, and PFE32 (Programmer's File Editor 32-bit version). Of these PFE32 is my favourite because of its many features but unfortunately the author has discontinued support and has not responded to my requests to let me continue his work.
Notepad doesn't have line numbering so it is probably a bad choice. In addition, in order to use the files you create under Notepad you have to rename them if you are using NT4 (because Notepad will automatically add .txt to your filename). DOS EDIT has line numbering but again will require file renaming under NT4 (since Edit only understands old style 8-letter name plus 3-letter extension form of naming under Windows NT - under Windows 95/98 you won't have that problem). PFE32 on the other hand doesn't come with you system and you will have to obtain and install it. If you think you want it, check out The SimTel.Net archive's copy of PFE32
In order to install the programs listed above, you will need to download and install a decompression program such as Power Archiver which can be obtained from http://powerarchiver.efront.com/.
To install PowerArchiver simply double-click on the file you downloaded from the website and follow the directions. In most cases you should be able to do a complete install by simply accepting the defaults and clicking on the Next button for each step.
For complete instructions refer to http://java.sun.com/products/jdk/1.1/installation-win32-x86.html
Double-click on jdk118-win32 which you downloaded and follow instructions.
If you downloaded the .zip version rather than the .exe you will have to unzip the file first. To do so, start Power Archiver and when you see Next click it once. Power Archiver will search the folders you specified as your favourites. If the JDK file is not in one of those folders, click on the Search button and choose Search Disk, and set the disk to "My Computer", then click Next. Click on the JDK filename and then click Next. Select the location in which you want the installation temporary files to be placed, then click Unzip Now. Open that folder and double-click the JDK install file, or, instead of Unzip Now choose the Install option.
If you have the documentation and wish to install use WinZip as above,
except make sure that the folder you are extracting to is the folder created
for the JDK (usually something like
If you want to be able to run the Java tools while working in any directory,
you need to add to your computers
C:\ Edit the file
NB: If you want to be able to use the JDK when you boot to MS-DOS as well as from a Windows you need to also edit properties of the "Exit To Dos" shortcut which is located in
C:\WINDOWS directory for Windows 95/98. To edit the MS-DOS boot
AUTOEXEC.BAT right-click on the "Exit To Dos" file in the
C:\WINDOWS directory and click on 'Properties'. In the properties dialog go to the section which allows you to specify an alternate
AUTOEXEC.BAT and do the same things in it as you are instructed to do for the main
AUTOEXEC.BAT as described below:
At the end of your
AUTOEXEC.BAT file add the following:
PATH=%PATH%; followed by the full path to the folder to which you installed
the JDK plus
e.g. Assuming you installed the JDK to
C:\JDK1.1.8 you would now have PATH=%PATH%;C:\JDK1.1.8\BIN
Reboot: After editing your AUTOEXEC file you will need to reboot for your changes to take effect, however if you are going to be using CCJ do this when indicated in the CCJ install instructions instead of now.
Go to Start|Settings|Control Panel|System Environment tab and add the
location of the JDK binaries (
C:\JDK1.1.8\BIN in the example above) to
PATH variable .
(So the path would might read C:\WINNT;C:\WINNT\SYSTEM32;C:\JDK1.1.8\BIN)
Full instructions my be found at: http://www.horstmann.com/ccj/help.html
Unzip the ccjfiles.zip file into the directory you would like
to store the CCJ Toolkit files in.
C:\CCJ is recommended and
\LIB) are to be avoided.
CLASSPATH environment variable pointing the CCJ files:
C:\AUTOEXEC.BAT file as for adding the
except add the line: SET CLASSPATH=C:\JDK1.1.8\LIB\CLASSES.ZIP;.;C:\CCJ\CLASSES.ZIP
Assuming you installed the JDK to
C:\JDK1.1.8 and the CCJ Toolkit to
Reboot: In order for your changes to take effect you will need to reboot Win95/98
Add a CLASSPATH environment variable (Start|Settings|Control Panel|System ...)
With the value
the JDK is installed to
C:\JDK1.1.8 and the CCJ Toolkit is in
This is a very good editor, but it is no longer actively supported by the author.
You can also set PFE to start automatically on double-clicking on file-types of your choice. Take a look at Options|Preferences|Associations
AUTOEXEC.BATin order for the changes you made to take effect.
Make sure the program is correct. Test it on a friend's (working) machine, then make sure you use the saved copy of the working program on your own machine. If it works on another machine but not yours, you need to retry the installation and/or contact a more knowledgable person. If it doesn't work on the other machine the problem [with the program] probably isn't the installation but a programming error (which is beyond the scope of this document).
E-mail author of this guide <firstname.lastname@example.org> for assistance.
CCJ is a java packages (set of classes) designed by the author of Computing Concepts with Java Essentials, 1. ed., Cay Horstmann. He created the package to make learning Java 1.1 a bit easier for novice computer programmers. In his second edition book he uses Java 2 and no longer has a supplementary package as he feels that it is no longer necessary with Java 2.
Unknown - Revision history added in Revision 2.0
This page accessed times.
© 1999-2002 Daniel F. Dickinson <email@example.com>