Install the Java Development Kit (JDK)
The Java Development Kit or JDK is the software that allows us to
develop and run Java programs. Click the image if you need to see a full-sized
The following steps will create a directory (folder) on your disk where
all your Java-related software will be placed. In the following steps, we will
assume a directory on your
C: drive named
java. If you choose a different place or name, you must be very
careful to use your name wherever you see
C:\java throughout the installation.
||Find the JDK installation files on the CD. They're inside a
directory (folder) named
JDK 5.0 Update 6. The file has the name
Remember that you can click on each of the images on this page
to see a full-size version.
||Double-click the file to begin installation. A splash screen will
show for a while and then you'll be shown a licence agreement. If you want to
learn Java, you must click I accept and the Next button.
||This screen allows you to customize your installation.
- The defaults shown in the upper part of the dialog box are all
- Change the installation directory so that all of your
Java-related programs are together, as follows:
- Click on the Change button.
- In the resulting screen, type
C:\java\jdk1.5\ in the space for the Folder name:.
- Click OK.
- You should now see the previous dialog box, shown above. Check
the Install to: information to verify that it says
||Click Next. A progress screen will show for quite a while.
It may take several minutes to fully install the software.
||You will be asked to install the Java Runtime Environment. Notice
that the screen is almost identical to the one in step 3. As we did there,
accept the default settings except for the installation directory. Click the
Change... button and change the Folder name: field to
C:\java\jre1.5\. Note that this name contains jre whereas the name entered in
step 3 contains jdk.
Click OK to come back to this
screen. Then click Next.
||This is your opportunity to register your Web browser with the new
version of Java, enabling applets to run with the new software. Leave all of
the browsers listed selected, then click Next.
||You will again be shown a progress screen while software is
||Eventually, you will be shown a completion screen. Click
||Installing the documentation for the JDK is, strictly speaking,
optional. You'll be grateful for it in the later part of the book, so you may
as well do it now.
Go back to the CD and find the file
jdk-1_5_0-doc.exe inside the directory named
JDK 5.0 Update 6. Double-click on it to open it.
||It should already have
C:\java\jdk1.5\ filled in the textfield labeled Unzip to folder. If you chose a
different place to store the JDK, type it in or use the Browse button to
go find it. Then click the Unzip button. A progress bar will appear at
the bottom. This may take several minutes.
When the completion message
is shown, click OK and then Close on the dialog shown above.
||You're done installing the JDK! Just as a double-check, take a look
at the directory where you installed it,
C:\java\jdk1.5\. It should look like the one shown here.
You're now ready to
install an IDE.