Installing
the J2sdk on your computer is necessary
to
build Java programs. The first step is to download J2SE
either from
the disk included with your book (Java Programming second edition)
by
Joyce Farrell or by going to
Sun Microsystems
download site.
Procedure
for Windows 98SE (second edition)
1.
Download the J2SE setup exe. to your desktop or somewhere on
your
computer you will be able to find it. It's important to know where
this file is
because you will need it to install the J2sdk.
2. Locate and run the exe. you have just downloaded and install it
on your
C drive. It will make it's own folder for whatever version you have
installed.
3. Now you will need to set the path and classpath. The classpath
tells the
SDK tools where to find classes that you have defined outside of the
Java
platform. To set the path and classpath go to the start menu on the
bottom
tool bar go to run and type in sysedit and click ok. Make sure the
window
for the AUTOEXE.BAT is in the front. Below you will see an example
of
how the path and classpath are set on my computer.
YOU
MUST RESTART YOUR COMPUTER ATFER CHANGING AUTOEXE.BAT
PATH=%PATH%;C:\j2sdk1.4.0\bin;.;
SET
CLASSPATH=C:\j2sdk1.4.0\bin;.;C:\j2sdk1.4.0\classes;.

The
path may already be set to the bin folder and if so, you can skip
setting the
path but you still need to set the classpath. Your settings will vary
from mine but
this will give you the general idea of how to set the paths.
Installing
TextPad ® is
the next step in preparing to build Java programs
on your computer. TextPad is a similar editor to Windows ® Notepad
but it has
much more advanced features for editing programs in Java and
other languages.
To install TextPad on your computer go to www.texpad.com
or just click on the link.
1. Download the files to your computer where you will be able to find
them later.
2. Run the installer and install to C\Program Files.
3. When you have it installed you can put a shortcut on the desktop
by opening
C\Program Files\TextPad4 and right clicking the TextPad exe. Then
in the drop
down menu go to Send to -- Desktop (create shortcut).
4. To add online help files to the tools drop down menu go to Configure\Preferences\
Tools. On the right you will see an Add button. Click Add and then
online help files.
This will open an explorer window where you can browse your hard drive
to locate
the help files. They should be located under C\Program files\TextPad\System\
TxtPadEng.chm click on TxtPadEng.chm
and click open. Click apply and you are done.
To see if they work go to the menu bar and click tools. You should
see it
at the bottm of your list. Click on Txtpadeng and your help files
should open.
You are now ready to start programming with Java.