Installing the JDK and JDK Documentation

Similar documents
Installing the Android SDK

Supplement I.B: Installing and Configuring JDK 1.6

Java Software Development Kit (JDK 5.0 Update 14) Installation Step by Step Instructions

Practice Fusion API Client Installation Guide for Windows

Supplement I.B: Installing and Configuring JDK 1.6

Eclipse installation, configuration and operation

Installing (1.8.7) 9/2/ Installing jgrasp

WA Continuous Integration with Jenkins- CI, Maven and Nexus. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Primavera P6 Professional Windows 8 Installation Instructions. Primavera P6. Installation Instructions. For Windows 8 Users

Java Language Tools COPYRIGHTED MATERIAL. Part 1. In this part...

Installing Eclipse C++ for Windows

Java. How to install the Java Runtime Environment (JRE)

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Citrix Client Install Instructions

Setting up Sudoku example on Android Studio

BSDI Advanced Fitness & Wellness Software

How To Create A Hyperlink In Publisher On Pc Or Macbookpress.Com (Windows) On Pc/Apple) On A Pc Or Apple Powerbook (Windows 7) On Macbook Pressbook (Apple) Or Macintosh (Windows 8

Using an Automatic Back Up for Outlook 2003 and Outlook 2007 Personal Folders

5.6.2 Optional Lab: Restore Points in Windows Vista

Installation of IR under Windows Server 2008

Click Start > Control Panel > System icon to open System Properties dialog box. Click Advanced > Environment Variables.

JAVS Scheduled Publishing. Installation/Configuration... 4 Manual Operation... 6 Automating Scheduled Publishing... 7 Windows XP... 7 Windows 7...

A Step-by-Step Patient Guide to Upload Medical Images to the Cleveland Clinic Neurological Institute

This document details the following four steps in setting up a Web Server (aka Internet Information Services -IIS) on Windows XP:

Titanium Mobile: How-To

Offline Audit Tool Version 3.0

Lab: Data Backup and Recovery in Windows XP

Install and Troubleshoot Java

SSH Secure Client (Telnet & SFTP) Installing & Using SSH Secure Shell for Windows Operation Systems

ACS EPF Download Manager Technical Guide. Table of Contents

Most of your tasks in Windows XP will involve working with information

Installing Ruby on Windows XP

Appendix A How to create a data-sharing lab

SmartLock Pro Plus Audit View OPERATOR GUIDE

Reflection DBR USER GUIDE. Reflection DBR User Guide. 995 Old Eagle School Road Suite 315 Wayne, PA USA

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Lab - Data Backup and Recovery in Windows XP

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

BioWin Network Installation

RECOMMENDED JAVA SETTINGS

4cast Client Specification and Installation

SAS Installation via the Client-Server Image (CAHNRS Site License)

How to Backup and FTP your SQL database using E2.

Automated Marketing QuoteWerks Infusionsoft Plugin

Configuring Your Firewall for Client Access in Professional Edition

Download and Installation Instructions. Java JDK Software for Windows

Manual of UPClink VPN.UPC.EDU (For Windows 7)

Troubleshooting Guide. 2.2 Click the Tools menu on Windows Explorer 2.3 Click Folder Options. This will open a dialog box:

How to Install Java onto your system

BSDI Advanced Fitness & Wellness Software

Virtual Office Remote Installation Guide

You must have at least Editor access to your own mail database to run archiving.

Outlook . Step 1: Open and Configure Outlook

Census. di Monitoring Installation User s Guide

Witango Application Server 6. Installation Guide for Windows

Installing Java. Table of contents

Remedy ITSM Service Request Management Quick Start Guide

1. Navigate to Control Panel and click on User Accounts and Family Safety. 2. Click on User Accounts

PC Agent Quick Start. Open the Agent. Autonomy Connected Backup. Version 8.8. Revision 0

How to Configure Windows 8.1 to run ereports on IE11

Malwarebytes Anti-Malware 1.42

FreeFlow Accxes Print Server V15.0 August P Xerox FreeFlow Accxes Print Server Drivers and Client Tools Software Installation Guide

How To Configure CU*BASE Encryption

SecureVault Online Backup Service Client Installation Guide

How to Set Up Outlook 2007 and Outlook 2010 for Hosted Microsoft Exchange if the Program is Already Installed

How to Install Eclipse. Windows

AccXES Client Tools 10.0 User Guide 701P41529 May 2004

Configuring the BBj Jetty Web Server (rev10.02) for OSAS

Migrating From Bobcat Mail To Google Apps (Using Microsoft Outlook and Google Apps Sync)

Microsoft Outlook Web Access Handbook

Anti-Human Trafficking (AHT v1)

ParishSOFT Remote Installation

Home Course Catalog Schedule Pricing & Savings Training Options Resources About Us

MySabre with Sabre VPN

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

Installing a Westell USB Network Adapter

For Introduction to Java Programming, 5E By Y. Daniel Liang

XF Extracellular Flux Analyzer. Installation and Troubleshooting Guide

Issue Tracking Anywhere Installation Guide

Appendix K Introduction to Microsoft Visual C++ 6.0

8x8 Virtual Office Telephony Interface for Salesforce

Table of Contents. Oracle/Sun JRE Upgrade Instructions. Verify Hard Disk Space JRE

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Super Pro Net TM Network Key Installation and Operation

Google Trusted Stores Setup in Magento

owncloud Configuration and Usage Guide

ProperSync 1.3 User Manual. Rev 1.2

Subscribe to RSS in Outlook Find RSS Feeds. Exchange Outlook 2007 How To s / RSS Feeds 1of 7

Setting up Sharp MX-Color Imagers for Inbound Fax Routing to or Network Folder

ilaw Installation Procedure

Application Development Setup Guide

Virtual CodeMeter Activation Guide

How schedule AccuTRConsole to run every hour

Configuration Guide. Remote Backups How-To Guide. Overview

Omgeo Central Trade Manager SM

XConsole GUI setup communication manual September 2010.

Transcription:

APPENDIX E Installing the JDK and JDK Documentation This appendix explains how to install the Java Development Kit (JDK) for the Windows operating system, and the JDK documentation. The JDK for Windows and the JDK documentation are included on the Student CD that comes with your textbook. If you do not have a Student CD, or you are using an operating system other than Windows, go to the end of this appendix for instructions on downloading the files from Sun Microsystems. Installing the JDK for Windows from the Student CD Step 1: On the Student CD you will find a folder named JDK, and inside that folder you will find an executable file with the following name: jdk-6uxx-windows-i586-p.exe The XX in the filename will be the software s update number. For example, if the CD contains update 10, the XX in the filename will be jdk-6u10-windows-i586-p.exe. This file is an executable program that will install the Java 6 JDK for Windows on your computer. Run the file. Step 2: A license agreement screen, such as the one shown in Figure E-1 will appear next. Read the agreement, then click the Accept button. Step 3: A Custom Setup screen, such as shown in Figure E-2, appears next. Make sure Development Tools is selected. Also, notice that at the bottom of the window you see the words Install to: followed by the path C:\Program Files\Java\jdk1.6.0_XX. (The XX will be a number.) This is the location where the files will be installed. Click the Next button. E-1

E-2 Appendix E Installing the JDK and JDK Documentation Figure E-1 License agreement screen Figure E-2 Custom Setup screen Step 4: A progress screen, such as shown in Figure E-3, appears next. As the development files are installed to your system, the progress bar will be updated, indicating the status of the installation. It may take several minutes for this part of the installation to complete.

Installing the JDK for Windows from the Student CD E-3 Figure E-3 Progress screen Step 5: During the installation process you will see the Destination Folder screen shown in Figure E-4. This specifies where the Java runtime files will be installed. As shown in the Figure, the default location is C:\Program Files\Java\jre6. Click the Next button. Another progress screen, like the one shown in shown in Figure E-5, appears next. As the runtime files are installed to your system, the progress bar will be updated, indicating the status of the installation. It may take several minutes for this part of the installation to complete. Figure E-4 Destination Folder screen for the Java Runtime Environment

E-4 Appendix E Installing the JDK and JDK Documentation Figure E-5 Progress screen Step 6: Once all of the files are installed you will see the screen shown in Figure E-6. Click the Finish button to complete the installation. Figure E-6 Installation complete

Setting the Path Environment Variable If you plan to use the JDK command-line utilities to compile and run Java programs, you will probably want to edit the contents of the Path variable on your system. This will allow your system to find the JDK programs from any folder when you run them at the command-line. The Path variable contains a list of folder paths, separated by semicolons. For example, the Path variable might contain the following string: C:\windows\system;C:\games;C:\Program Files\MyPrograms When you type the name of an executable file at the command-line and press e, the system will first look in the current folder for that file. If it can t find the file there, it will begin looking in the folders that are listed in the Path variable. To make it easy to execute the Java JDK utilities from the command-line, you should update the Path variable so the system can find the files. This means adding the following path to the variable s contents: C:\Program Files\Java\jdk1.6.0_XX\bin Be sure to replace the XX in the path with the software s update number. This is the folder that contains the executable files for the version of the Java JDK installed from the Student CD. The procedure for adding this path to the Path variable depends on the version of Windows you are using. Windows Vista Click the Start button, then click Control Panel, then double-click the System icon. (If you are running Windows XP in Category View, click Performance and Maintenance in the Control Panel, and then click the System icon.) Next, click the Advanced System Settings. (At this point you will probably need to give Windows permission to continue.) Next you should see the System Properties window. Click the Environment Variables button. In the System Variables list, scroll to the Path variable. Select the Path variable and click the Edit button. Add a semicolon to the end of the existing contents, then add the following path: C:\Program Files\Java\jdk1.6.0_XX\bin Be sure to replace the XX in the path with the software s update number. Click the OK buttons until all of the dialog boxes are closed, and exit the control panel. Windows XP Click the Start button, then click Control Panel, then double-click the System icon. (If you are running Windows XP in Category View, click Performance and Maintenance in the Control Panel, and then click the System icon.) Next, click the Advanced tab, and then click the Environment Variables button. In the System Variables list, scroll to the Path variable. Select the Path variable and click the Edit button. Add a semicolon to the end of the existing contents, then add the following path: C:\Program Files\Java\jdk1.6.0_XX\bin Be sure to replace the XX in the path with the software s update number. Click the OK buttons until all of the dialog boxes are closed, and exit the control panel. Windows XP E-5

E-6 Appendix E Installing the JDK and JDK Documentation Installing the Java JDK Documentation The JDK Documentation folder on the Student CD contains a file with a name similar to the following: jdk-6uxx-docs.zip where XX will be an update number. For example, the file jdk-6u10-docs.zip contains the documentation for Java 6 update 10. You can decompress the file with any utility that supports the zip file format. When you decompress the file, it will create a docs folder, which will contain several other folders. It will also contain a file named index.html. Open the index.html file with your Web browser to view the documentation. NOTE: The JDK documentation can also be viewed online at the following address: http://java.sun.com/javase/6/docs/index.html Although the documentation contains an abundant amount of information on the Java language and utilities, you will find yourself using the API documentation regularly. The API documentation contains information on all the classes in the Java Application Program Interface (API). The following steps guide you through the process of viewing the API documentation for the Scanner class. Step 1: Open the documentation in your Web browser. (If you installed the documentation on your system, open the index.html file in the docs folder.) You will first see the screen shown in Figure E-7. Figure E-7 JDK 5.0 Documentation opening screen

Installing the Java TM JDK Documentation E-7 Step 2: Click the API, Language, and VM Specs link near the top of the screen. You will see the screen shown in Figure E-8. Figure E-8 Documentation screen Step 3: Click the Java Platform API Specification link near the top of the screen. You will see the screen shown in Figure E-9. Step 4: In the leftmost pane you will see an alphabetically ordered list of all the classes and interfaces in the API. Scroll down in this list and click Scanner. You will see the screen shown in Figure E-10. Step 5: From this screen you can navigate to any part of the Scanner class s documentation. For example, to view a list of the class s methods, click the METHOD link near the top of the page. To view a list of the class s constructors, click the CONSTR link. Explore these and other links to get a feel for the documentation.

E-8 Appendix E Installing the JDK and JDK Documentation Figure E-9 API documentation screen Figure E-10 Scanner class documentation

Downloading the JDK from Sun Microsystems The JDK is also available from Sun Microsystems for the Windows, Linux, and Solaris operating systems. To download the JDK from Sun, follow these instructions: Step 1: Open your browser and go the following address: http://java.sun.com/javase/downloads/index.jsp Downloading the JDK from Sun Microsystems E-9 Step 2: On the page that opens, click the Download button next to the most recent version of the JDK. Step 3: On the next page, select your platform and language, and put a check mark next to I agree to the Java SE Development Kit License agreement. Click the Continue button. On the next page you are given a link to download the JDK. Step 4: Once the file is downloaded, run it. Follow the instructions outlined in this appendix to install the JDK.