JDK Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 4.32, 2006

Installing J2SE 1.5.0 on Windows 2000

JDK Tutorials - Herong's Tutorial Notes © Dr. Herong Yang


Character Set and Encoding

Socket Communication

Document Object Model (DOM)

XSD Validation in Java

XSL - Transformer in Java

JCA - Private and Public Key Pairs

JCE - Secret Key

SSL (Secure Socket Layer)

SSL - Client Authentication

... Table of Contents


  • Go to java.sun.com/j2se/1.5.0/download.jsp.
  • Click the "Download JDK" hyper link.
  • Follow the instructions on the Web pages to download jdk-1_5_0-windows-i586.exe to a working directory on your hard disk. This file is about 45 MB.
  • Double click on the file name: jdk-1_5_0-windows-i586.exe in the working directory in the File Explorer.
  • Follow the instruction on the installation window to finish the installation. Remember to specify the target directory to be: \j2sdk1.5.0.
  • Open a command window to try the java command. If you are getting the following output, your installation was ok: returns with message:
\j2sdk1.5.0\bin\java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)

First Java Program

Use NotePad to enter the following Java program into a file called Hello.java:

class Hello {
   public static void main(String[] a) {
      System.out.println("Hello world!"); 	

Then compile this program in a command window with the javac command:

\j2sdk1.5.0\bin\javac Hello.java

To execute the program, use the java command:

\j2sdk1.5.0\bin\java -cp . Hello
Hello world!

Congratulations, you have successfully entered, compiled and executed your first Java program.

Dr. Herong Yang, updated in 2006
JDK Tutorials - Herong's Tutorial Notes - Installing J2SE 1.5.0 on Windows 2000