JaVa
   

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 version, you can either use the companion DVD that comes with this tutorial or download it from the Oracle web site. Here is the direct link to download the Java 1.4 SDK for all applicable platforms: http://java.oracle.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 apps (see , "apps 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 apps and applets.

NoteĀ 

Although as a developer you need the rather large Java SDK to create Java apps 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 Oracle web site (http://java.oracle.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
   
Comments