Supplement I.B: Installing and Configuring JDK 1.5

Similar documents
Supplement I.B: Installing and Configuring JDK 1.6

Supplement I.B: Installing and Configuring JDK 1.6

Supplement I.C. Creating, Compiling and Running Java Programs from the Command Window

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

How to Install Java onto your system

How to install and use the File Sharing Outlook Plugin

Right now, the latest and greatest version of Java available for download is Start with this link to find out more about it

ABS2020 Moving Airfreight Forward

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

Practice Fusion API Client Installation Guide 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

Download and Installation Instructions. Java JDK Software for Windows

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

WA2262 Applied Data Science and Big Data Analytics Boot Camp for Business Analysts. Classroom Setup Guide. Web Age Solutions Inc.

HELP DOCUMENTATION E-SSOM DEPLOYMENT GUIDE

Appendix A Using the Java Compiler

A. BACK UP YOUR CURRENT DATA. QuickBooks Business Accounting Software for Windows Account Conversion Instructions

Eclipse installation, configuration and operation

Packaging and Deploying Java Projects in Forte

Virtual Office Remote Installation Guide

LAB 1. Familiarization of Rational Rose Environment And UML for small Java Application Development

How schedule AccuTRConsole to run every hour

Updating Your Applied Account

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

Configuring Your Firewall for Client Access in Professional Edition

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

Yale Software Library

How to setup a VPN on Windows XP in Safari.

Installing the Android SDK

Installing Java. Table of contents

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

This tutorial provides detailed instructions to help you download and configure Internet Explorer 6.0 for use with Web Commerce application.

Installation / Migration Guide for Windows 2000/2003 Servers

To add Citrix XenApp Client Setup for home PC/Office using the 32bit Windows client.

Tech Tips Helpful Tips for Pelco Products

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

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

Matisse Installation Guide for MS Windows. 10th Edition

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

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

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

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

Accessing the Online Meeting Room (Blackboard Collaborate)

SAS 9.3 Foundation for Microsoft Windows

Setting up Your Acusis Address. Microsoft Outlook

Compiere ERP & CRM Installation Instructions Windows System - EnterpriseDB

How To - Install and configure the Symbience AL3 Download Client

Installing a Westell USB Network Adapter

Tufts VPN Client User Guide for Windows

MyNetFone Virtual Fax. Virtual Fax Installation

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

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Upgrading Your Web Server from ClientBase Browser Version 2.0 or Above to Version 2.1.1

Microsoft Windows XP Firewall

Installing Ruby on Windows XP

Client Authenticated SSL Server Setup Guide for Microsoft Windows IIS

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

Crystal Print Control Installation Instructions for PCs running Microsoft Windows XP and using the Internet Explorer browser

How to Install Audacity and the LAME MP3 Encoder on Windows

XStream Remote Control: Configuring DCOM Connectivity

Network Server for Windows. Overview of the Sequencher Network Page 2. Installing Sequencher Server for the First Time Page 3

Connecting To SOM Network Drives With Windows XP

DOCUMENT MANAGEMENT SYSTEM

To begin, visit this URL:

User Guide Microsoft Exchange Remote Test Instructions

Quick Start Using DASYLab with your Measurement Computing USB device

Getting started with 2c8 plugin for Microsoft Sharepoint Server 2010

This walk-through was created using Windows XP as a guide, however alternate versions of the Windows OS will be very similar in procedure as well.

How To Configure CU*BASE Encryption

Standard Client Configuration Requirements

Transferring Scans from your Dolphin into Destiny

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

Installation of IR under Windows Server 2008

4cast Client Specification and Installation

Hosted VoIP Outlook TAPI Integration

Installation Instruction STATISTICA Enterprise Small Business

Quick Start Guide for the SupportDesk Web Interface

Software Installation Requirements

Smart Control Center. User Guide. 350 East Plumeria Drive San Jose, CA USA. November v1.0

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

Getting Started using the SQuirreL SQL Client

MAC OS X 10.5 Mail Setup

Troubleshooting Guide

L.E.A.P.S Electronic Freight Billing System Installation Guide

Instructions for accessing the new TU wireless Network

Patching the Windows 2000 Server Operating System on S8100 Media Servers, IP600 Communications Servers, & DEFNITY ONE Communications Systems

Citrix Client Install Instructions

ContentWatch Auto Deployment Tool

Installing FileMaker Pro 11 in Windows

Jumble for Microsoft Outlook

Compiere 3.2 Installation Instructions Windows System - Oracle Database

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

Inmagic ODBC Driver 8.00 Installation and Upgrade Notes

Banner Frequently Asked Questions (FAQs)

How do I use Citrix Staff Remote Desktop

Motorola Phone Tools. Quick Start

USING SSL/TLS WITH TERMINAL EMULATION

How to connect to VUWiFi

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

Transcription:

Supplement I.B: Installing and Configuring JDK 1.5 For Introduction to Java Programming By Y. Daniel Liang This supplement covers the following topics: Downloading JDK 1.5 Installing JDK 1.5 Configuring JDK Verifying Configurations 1.1 Downloading JDK 1.5 You can download JDK 1.5 from http://java.sun.com/j2se/1.5.0/download.jsp. The Windows version of JDK download file is named jdk-1_5_0-windowsi586.exe. (Note: new versions or updates may be available. If you download a new version or an update version, the file name may be slightly different from jdk-1_5_0-windowsi586.exe.) 1.2 Installing JDK 1.5 on Windows Follow the steps below to install JDK 1.5: 1. Double click jdk-1_5_0-windows-i586.exe to run the installation program. You will see the JDK License dialog displayed, as shown in Figure 1. 2. Check the radio button to accept the license agreement and click Next to display the JDK Custom Setup dialog, as shown in Figure 2. 3. You may install JDK in a custom directory. For simplicity, don t change the directory. Click Next to install JDK. After a while, the JRE Custom Setup dialog is displayed in Figure 3. 4. You may install JRE in a custom directory. For simplicity, don t change the directory. Click Next to display the Browser Registration dialog is displayed in Figure 4. Make sure the browser(s) are selected. This will enable your browser to run Java applets. Click Next to continue. 5. After installation completed, the Complete dialog is displayed in Figure 5. Click Finish to close the dialog. Copyright Y. Daniel Liang, 2005 1

Figure 1 You have to accept the license in order to install JDK 1.5. Figure 2 The JDK Custom Setup dialog enables you to choose a custom directory for JDK files. Copyright Y. Daniel Liang, 2005 2

Figure 3 The JRE Custom Setup dialog enables you to choose a custom directory for JRE files. Figure 4 The Browser Registration dialog registers browsers with the JRE. Copyright Y. Daniel Liang, 2005 3

Figure 5 The Complete dialog indicates a successful installation. 1.3 Configuring JDK 1.5 on Windows To figure JDK is to make it available in the operating system so that Windows can find your JDK commands such as javac. 1.3.1 Configuring JDK on Windows NT, 2000, XP, and ME To configure JDK on Windows NT, 2000, ME, and XP, set the environment variables as follows: 1. Right click on the My Computer icon on your desktop to display a context menu. Choose Properties from the context menu to open the System Properties window, as shown in Figure 6. (This screen shot is taken from Windows 2000. For Windows NT, XP, and ME users, the System properties window may look slightly different.) 2. In the System properties window, click Environment Variables in the Advanced tab to display the Environment Variables window, as shown in Figure 7. Copyright Y. Daniel Liang, 2005 4

Figure 6 The System Properties window contains system information. Figure 7 The Environment Variables window enables you to set user and system variables. Copyright Y. Daniel Liang, 2005 5

3. You can set or modify user variables or systems variables. User variables affect the individual users and system variables affect all the users in the system. In the User variables section, select PATH and click Edit if PATH is already a user variable. Otherwise, click New to display the New User Variable window as shown in Figure 8. Figure 8 The New User Variable enables you to set a new user variable and its value. 4. Type PATH in the Variable field and c:\program Files\Java\jdk1.5.0\bin;%path% in the Variable Value field, as shown in Figure 4. Click OK. NOTE: You don t have to reboot the computer, but you have to open a new command window to use JDK commands. NOTE: If you download a new version or an update version, the directory name jdk1.5.0 may be slightly different. For example, the directory name is jdk1.5.0_04 for JDK 1.5 Update 4. 1.3.2 Configuring JDK on Windows 95 and 98 To configure JDK on Windows 95 and 98, update the autoexec.bat file as follows: 1. Open a Windows command prompt window and type notepad autoexec.bat from the C:\ prompt to display the Notepad window. 2. Type the following line in the Notepad window, as shown in Figure 9. set path=c:\program Files\Java\jdk1.5.0\bin;%path% Copyright Y. Daniel Liang, 2005 6

Figure 9 The javac command is not found if JDK is not properly configured. 3. Choose File, Save in the Notepad window to save the file and close the Notepad window. 4. autoexec.bat file is executed every time you start your computer. Reboot your system to have the new configurations to take effect. 1.3.3 The classpath Environment Variable You don t need to set classpath unless you need to add new packages. Packages are introduced in Chapter 4 in Introduction to Java Programming, 5E. A package corresponds to a directory in Java. To add a package to classpath is to add its corresponding directory to the path. The command to add a directory is set classpath=.;%classpath%;new-directory The. symbol indicates the current directory. The current directory is not a specific directory. It is the directory in which you are current located. %classpath% represents the existing classpath. The current directory, the existing classpath, and the new-directory are all set in the new classpath. You don t set a classpath explicitly; the current directory is in the classpath. 1.4 Verifying Configurations To verify whether JDK 1.5 is configured correctly, type java version from the command prompt, as shown in Figure 10. Figure 10 The javac command is not found if JDK is not properly configured. Copyright Y. Daniel Liang, 2005 7