Google
Web deitel.com
Deitel® Buzz Online
free e-mail newsletter
Register Now!


HTML Text
Lotus Notes users,
please select Text

Prentice Hall/Pearson Education Technical Support

If after attempting installation with the following directions you have questions regarding software intallation, please contact technical support by email at media.support@pearsoned.com or call 1-800-677-6337.

How do I install the software from the CD-ROM included in the back of Java How to Program, Third Edition?

NOTE: The following instructions assume you are familiar with the Microsoft Windows® Operating System (Windows 95, Windows 98, Windows NT or Windows 2000). If you are not familiar with Microsoft Windows, please ask your teaching assistant or professor for help.

NOTE: The following instructions assume that you install each piece of software in its default installation directory.

There are three products included on this CD-ROM:

  1. Java 2 SDK, version 1.2.1 from Sun Microsystems (http://java.sun.com). [NOTE: The latest version of this is Java 2 SDK version 1.3 and is available from http://java.sun.com. The examples in this book will work with version 1.3.]
  2. JBuilder3 University Edition from Borland (http://www.borland.com). [NOTE: The name of this product has changed to JBuilder Foundation Edition. A more recent version of this product can be found at http://www.borland.com. The new version is more robust and faster than the University Edition included on the CD in Java How to Program, 3/e.]
  3. NetBeans DeveloperX2 2.1 from NetBeans (http://www.netbeans.com). [NOTE: NetBeans is now owned by Sun Microsystems. The name of this product has changed to Forte for Java. A more recent version of this product can be found at http://java.sun.com.]

Each of these pieces of software has its own installation program. All of these installation programs are linked to the Welcome.html document located in the root directory of the CD-ROM (Note: On some computers running the Windows operating system, this file name may display as simply Welcome). Please read this file carefully.

If you use Microsoft Internet Explorer as your Web browser, you can open the Welcome.html file from the CD-ROM. This file links directly to the installation programs for each of the products listed above. When you click the installation link for a specific program, Internet Explorer will display a dialog box asking if you would like to open the file from its current location or save the file to disk. Choose open the file from its current location and click OK. This will execute the installation program for the product. Follow the prompts supplied by the installation program. Unless you are an experienced programmer, you should keep all the default options specified by the installation program for the product you chose. More specific installation directions are provided for each product below.

If you use Netscape Navigator/Communicator as your Web browser, you should still read the Welcome.html file from the CD-ROM. Unfortunately, clicking the links to the installation programs for each product only gives you the option of saving the program to disk. Please see the more detailed installation instructions below for information on installing each product directly from the CD-ROM.

Installing directly from the CD

Java 2 SDK, version 1.2.1

[NOTE: The latest version of this is Java 2 SDK version 1.3 and is available from http://java.sun.com. The examples in this book will work with version 1.3.]

  1. Open Windows Explorer.
  2. Select the CD-ROM drive in the Folders pane (i.e., the left side of Windows Explorer). Be sure to click directly on the CD-ROM drive and not the + to its left. This will display the contents of the CD-ROM in the contents pane (i.e., the right side of Windows Explorer).
  3. Double-click the Java2 SDK directory in the contents pane to display the contents of that directory. The README.html file in this directory contains important information about system requirements and installation.[Note: The installation links on this page link directly to the Sun Microsystem's Web site, so you will need to be connected to the internet to see those pages.]
  4. Double-click the Win32 directory. The directory contains the directory jdk1.2.1, the file jdk1_2_1-doc.zip (which may display as jdk1_2_1-doc) and the file jdk1_2_1-win.exe (which may display as jdk1_2_1-win). The jdk1.2.1 directory contains the Java 2 SDK on-line documentation. See Copying the on-line documentation to disk for directions on copying this documentation to your hard disk. The file jdk1_2_1-doc.zip is an archived version of the documentation in the jdk1.2.1 directory. The file jdk1_2_1-win.exe is the installation program.
  5. Double-click the file jdk1_2_1-win.exe (on some systems, this will display simply as jdk1_2_1-win) to launch the installation program.
  6. You will be lead through a series of steps by an installation wizard.
  7. In the Welcome window, click Next >.
  8. In the Software License Agreement window, read the agreement, then click Yes if you agree to the terms.
  9. In the Choose Destination Location window, click Next >.
  10. In the Select Components window, click Next >.
  11. The installer will copy files for the Java 2 SDK to your hard disk in the directory c:\jdk1.2.1. Then, the installer will begin the installation for the Java 2 Runtime Environment.
  12. In the Software License Agreement window, read the agreement, then click Yes if you agree to the terms.
  13. In the Choose Destination Location window, click Next >.
  14. The installer will copy files for the Java 2 Runtime Environment to your hard disk in the directory c:\Program File\JavaSoft\Jre\1.2.
  15. In the Setup Complete window click Finish.
  16. After the installation is complete, carefully read the file c:\jdk1.2.1\README.html. It contains important information about the Java 2 SDK.
  17. You will need to create a PATH environment (Windows 95/98, Windows NT) variable that helps your computer locate the Java compiler and Java interpreter on your hard disk.

Copying the on-line documentation to disk

  1. In the Java2 SDK\Win32 directory on the CD is a directory called jdk1.2.1. This directory contains the documentation for the Java 2 SDK. Simply copy this directory onto your c:\ drive. Doing so will create a docs subdirectory below C:\JDK1.2.1.
  2. To view the documentation, open the file c:\jdk1.2.1\docs\index.html   in your Web browser. The part of the documentation you will be most concerned with is the API (Application Programming Interface) Specification that can be found at c:\jdk1.2.1\docs\api\index.html. On this page be sure to click the Help link in the upper-right corner of the page to learn how to use the on-line documentation.

Creating/Modifying the PATH environment variable in the AUTOEXEC.BAT file for Windows 95/98

  1. Click the Start button (lower-left corner of your screen).
  2. Select Run...
  3. Type sysedit and press OK. This displays the System Configuration Editor which allows you to edit the autoexec.bat file (and several others).
  4. The default file to edit is C:\AUTOEXEC.BAT (the window containing this file is in the foregound).
  5. As the last line in this file, add
            SET PATH=C:\JDK1.2.1\BIN;%PATH%
  6. In the File menu, select Save.
  7. In the File menu, select Exit.
  8. Restart your computer so the changes take effect.

Creating/Modifying the PATH environment variable in Windows NT.

  1. Click the Start button (lower-left corner of your screen).
  2. Go to Settings.
  3. Select Control Panel.
  4. In the Control Panel, double-click System.
  5. Click the Environment tab. This tab contains two areas: System Variables and User Variables.
  6. In the User environment variables section, check if there is a PATH variable already defined (you may need to scroll through that part of the window). If not, skip to step 10.
  7. Click the PATH variable. This displays PATH in the Variable field at the bottom of the window and the current path setting in the Value field at the bottom of the window.
  8. Click in the Value field and use the right arrow key to scroll to the end of the text in that text field. Type the following at the end (NOTE: Be sure to place a semicolon after the current value):
               ;C:\JDK1.2.1\BIN
    The semicolon is only required if there is not one already there.
  9. Skip to step 12.
  10. If the PATH variable is not defined, click in the Variable field at the bottom of the window and type
                PATH
  11. Click in the Value field and type
                C:\JDK1.2.1\BIN
  12. Click the Set button then close the window. It is extremely important that you click Set first, otherwise the new setting will not be saved.
  13. You are now ready to use the Java 2 SDK. If you had any Command Prompt windows open before you set the PATH, these will need to be closed and re-opened for the new PATH setting to take effect. You do not need to restart your computer.

JBuilder3 University Edition

[NOTE: The name of this product has changed to JBuilder Foundation Edition. A more recent version of this product can be found at http://www.borland.com. The new version is more robust and faster than the University Edition included on the CD in Java How to Program, 3/e.]

  1. Open Windows Explorer.
  2. Select the CD-ROM drive in the Folders pane (i.e., the left side of Windows Explorer). Be sure to click directly on the CD-ROM drive and not the + to its left. This will display the contents of the CD-ROM in the contents pane (i.e., the right side of Windows Explorer).
  3. Double-click the Jb30_edu_rt directory in the contents pane.
  4. Double-click the setup directory in the contents pane.
  5. Double-click the jbuilder directory in the contents pane to display the installation files for JBuilder3 University Edition
  6. Double-click the file Setup.exe (on some systems, this will display simply as Setup) to launch the installation program.
  7. You will be lead through a series of screens by an installation wizard.
  8. In the Welcome window, click Next >.
  9. In the Software License Agreement window, read the agreement, then click Yes if you agree to the terms.
  10. In the Installation Notes window, read the notes, then click Next >.
  11. In the Choose Destination Location window, click Next >.
  12. In the Setup Type window, click Next >.
  13. In the Select Program Folder window, click Next >.
  14. In the Start Copying Files window, click Next >. This will place the files into C:\Jbuilder3.
  15. In the Product Notes window, read the README.txt file, then click Next >.
  16. In the Setup Complete window, click Finish.

NOTE: After the installation is complete, you can access all the Readme files for this product by clicking your Start button, selecting Programs, selecting Borland JBuilder 3 University and selecting the appropriate file (Deployment Information, Hints and Tips, Installation Information, License Agreement or Readme).

NOTE: When you run JBuilder3 and select Help Topics from the Help menu, you will find a Quck Start guide to help get you started using JBuilder.

NOTE: This is not the complete professional version of JBuilder 3. It does not include many of the automatic code generation features that are part of the professional versions of the product. This product does allow you to write and compile the programs in this book with the same restrictions as the Java 2 SDK (i.e., some additional downloads will be required for some of the high-end chapters).

NetBeans DeveloperX2 2.1

[NOTE: NetBeans is now owned by Sun Microsystems. The name of this product has changed to Forte for Java. A more recent version of this product can be found at http://java.sun.com.]

  1. Follow the directions for installing the Java 2 SDK first. THIS IS REQUIRED!
  2. Open Windows Explorer.
  3. Select the CD-ROM drive in the Folders pane (i.e., the left side of Windows Explorer). Be sure to click directly on the CD-ROM drive and not the + to its left. This will display the contents of the CD-ROM in the contents pane (i.e., the right side of Windows Explorer).
  4. Double-click the NetBeans directory in the contents pane to display the installation files for NetBeans Developer X2 2.1.
  5. Double-click the file nbdx2_21.exe (on some systems, this will display simply as nbdx2_21) to launch the installation program.
  6. You will be lead through a series of screens by an installation wizard.
  7. In the NetBeans DeveloperX2 2.1 - Welcome window, click Continue.
  8. In the Welcome window, click Next >.
  9. In the Software License Agreement window, read the agreement, then click Yes if you agree to the terms.
  10. In the NetBeans DeveloperX2 Readme window, read the notes, then click Next >.
  11. In the User Information window, type your name and company/school, then click Next >.
  12. In the Choose Destination Location window, click Next >.
  13. In the Choose a Compatible Java Virtual Machine window, click Next >.
  14. In the Start Copying Files window, click Next >. This will place the files into C:\NetBeans\DeveloperX2.
  15. In the Setup Complete window, click Finish.

Note: After completing the installation, you will probably want to use the NetBeans DeveloperX2 tutorial to familiarize yourself with the product. When you run DeveloperX2, select Tutorial from the Help menu to access the tutorial. Also, the complete User's Guide is avaiable by selecting Contents from the Help menu.