Course contents ] [ Write to us! webmaster@keller.com ]

Workstation Setup Instructions for Java Jumpstart

Step 1: Install the Java Development Kit (JDK)
Step 2: Set the PATH Variable
Step 3: Copy the Course Files to your Workstation
Step 4: Edit the Source Files
Step 5: Compile and Run Java Programs

  1. Install the JDK
  2. Full download and installation instructions are available on Sun's Java website.

  3. Set the PATH Environment Variable
  4. You may need to configure your PATH environment variable so that you can run the java program from the command line.
    Windows NT 4.0
    To set the PATH environment variable:
    1. Open the Control Panel
    2. Select System
    3. Select Environment
    4. Choose PATH
    5. Append the directory in which the java program is located to your PATH
    6. Click on Set
    7. Click on OK

  5. Copy the Course Files to your Workstation
  6. Obtain your own local copy of the files you'll need in order to do the labs and exercises.
    Windows NT 4.0 and Windows 95
    To copy the source files into your own directory:
    1. Open Windows Explorer
    2. Click on (C:) or any other local disk
    3. Go to the File menu and select New Folder
    4. Type the name of your new folder: keller
    5. Find the directory in Explorer which contains the master copy of the course files. Your instructor will tell you where this is.
    6. Highlight all the files in this directory and drag them into c:\keller

  7. Edit the Source Files
  8. Windows 95
    1. Go to the Start menu and open a DOS window
    2. Change to the directory containing your copy of the source files by typing:
      C:\keller>cd c:\keller
      	      
    3. The source files for each chapter are stored in a directory named chapter_x; you can type the dir command to see all these directories
    4. Now change into the directory for the chapter you are working on. For example:
      C:\keller>cd chapter_1
      
    5. To edit a source file you can type, for example, the following command:
      C:\keller\chapter_1>notepad HelloWorld.java
      
      You will be prompted to create the file if it does not exist already.
    6. Edit the file in the notepad editor then save

  9. Compile and Run Java Programs
  10. Windows 95
    1. Open a DOS prompt from the Start menu
    2. Change to the directory containing your source file
    3. To compile your source file type the following at the DOS prompt:
      C:\keller\chapter_1>javac HelloWorld.java
      
    4. To run your Java program type the following at the DOS prompt:
      C:\keller\chapter_1>java HelloWorld
      

Course contents ] [ Write to us! webmaster@keller.com ] [ Home ] [ Curriculum ]
http://www.keller.com/java/setup.html
Updated Friday, 07-Jul-2006 12:46:21 CDT

Copyright © 2001
Dan Keller Technical Services
4500 19th St., San Francisco
California, USA 94114
tel: 415 / 861-4500