Installing the J2SE 1.4 SDK

In this section we will look at installing J2SE 1.4 for Microsoft Windows as an example; however, the installation process should be similar on other platforms, as the concepts remain the same.

To install the Java 2 Standard Edition, you can either use the companion CD-ROM that comes with this book or download it from the Sun Microsystems, Inc. web site. Here is the direct link to download the Java 1.4 SDK for all applicable platforms: http://java.sun.com/j2se/1.4.1/index.html.

For Microsoft Windows, once you have obtained the file (which will be called j2sdk-1_4_1_01-windows-i586.exe) you can then simply double-click it to begin the installation process.

Once you have accepted the Java software license agreement, you will be asked in which directory it should be installed. We will assume that you have installed to the default directory. After clicking Next, you will be presented with a list of options and, as with the directory, we recommend that you leave the options as they stand.

If you then continue by clicking Next, you will be asked on which browsers you wish to make the Java plug-in default. The most common browser for the plug-in is Microsoft Internet Explorer; however, if you also wish to use the plug-in with Netscape, check the Netscape 6 box also. Note that these options are only for using Java applets within a browser, not for Java applications (see Chapter 8, "Applications and Applets" for more details on the differences).

After clicking Next, the Java SDK will install, and you will be ready to begin making your first simple Java applications and applets.

Note 

Although as a developer you need the rather large Java SDK to create Java applications and applets, the end user only requires the JRE 1.4 (Java Runtime Environment). If this is required, perhaps for your mates to be able to play your latest applet games on the web, the Java 1.4 Runtime Environment is available on the companion CD and from the Sun Microsystems, Inc. web site (http://java.sun.com).

You should be aware that the tools, such as the Java compiler javac.exe and the interpreter java.exe, are contained within the bin/ directory of the installation directory of the SDK. We will look at using these features in the next chapter when we begin programming.



Java 1.4 Game Programming
Java 1.4 Game Programming (Wordware Game and Graphics Library)
ISBN: 1556229631
EAN: 2147483647
Year: 2003
Pages: 237

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net