How to Install and Use Sun's Java SDK

Installation

  1. Java Development Kit from Sun use 1.6.0 SDK - 60MB EXE file
    To conserve the Internet bandwidth if you are on campus (including dorms) please use on campus location.
  2. Run the downloaded file. The installation will start. Use
    C:\PROGRA~1\JAVA\JDK\
    as the destination location.
  3. After installation add Java to the system path. If you installed it to the location mentione dabove then the addition should be
    C:\PROGRA~1\JAVA\JDK\BIN
    See Win2000 or WindowsXP hint. (WindowsXP has the "Environment Variables" button located a little lower than Windows2000 in the same dialog box.)
  4. Java Documentation from Sun use 1.6.0 DOC - 55MB ZIP file
    To conserve the Internet bandwidth if you are on campus (including dorms) please use on campus location.
  5. Open the documentation with WinZIP and extract all files to
    C:\PROGRA~1\JAVA\
  6. Java Tutorial from Sun use 1.6.0 TUT - 25MB ZIP file
    To conserve the Internet bandwidth if you are on campus (including dorms) please use on campus location.
  7. Open the documentation with WinZIP and extract all files to
    C:\PROGRA~1\JAVA\

How to Compile and Run Programs

  1. Open a console window
  2. Go to the folder where you saved the source file(s): cd c:\path\folder\name
  3. Type
    javac -deprecation FileName.java
  4. If there are any erros, edit the program to correct the errors, save it and compile once again.
  5. If there are no errors - type
    java FileName
    to run it

.java Files and Notepad

Notepad has a "known issue" of renaming files to have .txt extension each time "Save As" option is used. To prevent this always start Notepad from console window by typing

notepad FileName.java

How to Access Java Library Documentation

  1. Create a shortcut to
    C:\PROGRA~1\JAVA\DOCS\index.html
    and place it on the desktop or in the Start Menu.

How to Access Java Tutorial

  1. Create a shortcut to
    C:\PROGRA~1\JAVA\TUTORIAL\index.html
    and place it on the desktop or in the Start Menu.

Java and Jobst144 Computer lab

  1. Open a console window
  2. Type
    G:\JAVA\java-set
  3. Proceed further the same way as described in "How to Compile and Run Programs".
  4. This procedure must be repeated for each new console window
  5. Remember to use Notepad, UltraEdit or other ASCII text editor to write or modify your programs.
    (Do not use MsOffice/MsWord document editor.)

web site front local main page print this page   general bookmarks software bookmarks go back close this page copyright info