|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Downloading to Windows NT, Step by StepThis section describes the process of downloading Suns JDK to your desktop computer. In this example, well assume you use a Windows NT systemother operating systems work similarly. Connecting to JavaSoft The easiest way to find the current JDK is to start at http://java.sun.com/. Scroll down the page until you see the Spotlight section on the left margin. In that section youll see a link for the Java Development Kit.
Downloading the JDK After youre on the download page, read the information about the JDK, then scroll down until you see the Java Development Kit Software section. Note the version number; make sure youre getting the version you expect. Figure 37.1 shows the download section of a typical JDK release.
Below the download section for the JDK, youll see options for the documentation and other software. You can download either the documentation or the JDK firstin this example, well start with the JDK itself. When youre done, come back to this page and follow the same procedures to download the documentation. Before leaving this page, scroll down to the end. Sun has put many useful links on this page, including links to Java documentation (beyond that supplied in the documentation kit). Consider bookmarking this page so youll always have the latest information on Java. Use the pull-down menu to select your operating system, and then click the Continue button. The license agreement for the JDK appears. Read the license agreement; if you want the JDK, you must accept the agreement.
After you navigate the license agreement, you finally arrive at the download page itself. Figure 37.2 shows this page. Note that you can download the JDK either from Suns FTP server or via HTTP. If your network connection permits you to use FTP, do so; its faster and more reliable. If you must, use HTTP.
You can download the installation kit into any convenient directory; the installer will place the components into the proper directories. Be sure to note the name of the file youre downloadingits given at the top of the download page. Some network connections change the name of the downloaded file to match the name of the page from which it is downloaded. If your software makes this mistake, switch the name back to the one given by Sun before continuing the installation process.
Installing the JDK The JDK installer for Windows 95/NT is an executable archive. Double-click this file to start the installation process. Follow the instructions to make the JDK directory.
When you finish installation, feel free to delete the installer programs for both the JDK and the documentation. You wont need them again unless you need to reinstall the software.
Setting Environment Variables Java uses the CLASSPATH environment variable to tell it where to look for Java classes. As a developer, youll want to add new class libraries to the CLASSPATH variable. If youve installed the JDK in the default location for your platform, the JDK tools will find the lib directory without searching CLASSPATH. Youll still need to set CLASSPATH if you install third-party programs.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |