Note

Most people who have used the Web, or applications that are web-based, have the JRE installed. The JRE allows you to run Java-based applications, but it does not allow you to create them. To create Java applications, you need to download and install the Java Development Kit (JDK), which contains all the tools and libraries needed to create Java applications. If you are not familiar with Java, keep these differences in mind. For the examples in this book, I will be downloading the JDK, because it also includes the JRE. Although you don't need the JDK to run Eclipse, you can use it for other development later in the book.

Navigate to the Sun Developer Network (SDN) Downloads page at http:// developers.sun.com/downloads/, as shown in the following illustration. Normally you only need the JRE to run Eclipse, but for purposes of this book you should download the full JDK, which includes the JRE. The reason for downloading the full JDK is that later in the book I will also give some examples of how to create Android applications outside Eclipse, using just the JDK tools. If you want to follow along with these tutorials, you will need the full JDK.

From the SDN Downloads page, navigate to the download section for the proper JDK. Select and initiate the download, as shown in the following illustration:

For the examples in this book, I chose to go with the Java 5 JDK update 14 because it is explicitly defined in the Eclipse documentation as the "supported" version of Java. To download the Java 5 JDK, select the platform for which you want to download. You should be able to follow along just as easily if you choose to download the Java 6 JDK. However, if you do want to download the older JDK 5, you need to click the Previous Releases link, as shown next:

NOTE

You must agree to and accept the Sun licensing agreement on this page before you can initiate your download.

NOTE

You must agree to and accept the Sun licensing agreement on this page before you can initiate your download.

On the Java SE Previous Releases Downloads page, click the J2SE 5.0 Downloads link, and then click the Download button for JDK 5.0 Update x, where x is the latest update number (14 at the time of this writing but likely different by the time you read this).

If you are downloading to a Microsoft Windows environment, when you see the notification in the following illustration, click Run to begin the installation of the JDK.

CAUTION

If you want to retain a copy of the JDK package, click Save rather than Run. However, if you choose to save the JDK, be sure to note the location. After the download completes, you will need to navigate to the download location and execute the package manually.

CAUTION

If you want to retain a copy of the JDK package, click Save rather than Run. However, if you choose to save the JDK, be sure to note the location. After the download completes, you will need to navigate to the download location and execute the package manually.

During the installation process, you will be prompted to read and accept the License Agreement, shown next. After agreeing to the standard License Agreement and clicking Next, you will be able to select your custom setup options.

There is very little you need to change here, unless you are a more seasoned Java veteran and have particular options that you want to choose, in which case you should feel free to change the selections as you see fit. The following illustration shows the Custom Setup screen for the Java JDK.

To keep the process simple, and fairly standardized, you should accept the suggested packages—by default everything is selected—and continue the installation by clicking Next. Once again, if you are comfortable with making specific changes, feel free to do so. However, if you have trouble in later chapters, you will want to modify your installation options. When the Installation Completed page appears, shown in the following illustration, click Finish and your installation should be completed.

Once you complete the Java JDK installation—and by default the JRE installation—you can begin to install Eclipse.

0 0

Post a comment