JDK Tutorials - Herong's Tutorial Examples - v6.21, by Dr. Herong Yang
Outdated: Downloading and Installing JDK 1.4.1 on Windows
This section provides a tutorial example on how to download and install JDK (or J2SE) 1.4.1 on a Windows 2000 system. A simple Java program was entered, compiled, and executed with the new JDK installation.
Downloading and installing JDK (or J2SE) 1.4.1 on a Windows system is easy. Here is what I did on my Windows 2000 system in year 2005:
1. Go to http://java.sun.com/j2se/1.4.1/download.html
2. Click the download button in the SDK column and next to "Windows (all languages, including English)" in the "Download J2SE(TM) v 1.4.1" section.
3. Follow the instructions on the Web pages to download j2sdk-1_4_1-windows-i586.exe to a working directory on your hard disk. This file is about 35 MB.
3. Double click on the file name: j2sdk-1_4_1-windows-i586.exe in the working directory in the File Explorer.
4. Follow the instruction on the installation window to finish the installation.
5. Open a command window to try the java command. If you are getting the following output, your installation was ok: returns with message:
\j2sdk1.4.1\bin\java -version java version "1.4.1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21) Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
Once JDK is installed, you can try to use it to compile and execute a simple Java program:
1.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!"); } }
2. Then compile this program in a command window with the javac command:
\j2sdk1.4.1\bin\javac Hello.java
3. To execute the program, use the java command:
\j2sdk1.4.1\bin\java -cp . Hello Hello world!
Congratulations, you have successfully entered, compiled and executed your first Java program with JDK 1.4.1.
When a new release of J2SDK is available, you can always to go back to the same download Web site, download j2sdk-1_4_1_01-windows-i586.exe, and run it to install. You may use the "java -version" command to verify the installation:
\j2sdk1.4.1_01\bin\java -version java version "1.4.1_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
Last update: 2005.
Table of Contents
Date, Time and Calendar Classes
Date and Time Object and String Conversion
Number Object and Numeric String Conversion
Locales, Localization Methods and Resource Bundles
Calling and Importing Classes Defined in Unnamed Packages
HashSet, Vector, HashMap and Collection Classes
Character Set Encoding Classes and Methods
Encoding Conversion Programs for Encoded Text Files
Datagram Network Communication
DOM (Document Object Model) - API for XML Files
DTD (Document Type Definition) - XML Validation
XSD (XML Schema Definition) - XML Validation
XSL (Extensible Stylesheet Language)
Message Digest Algorithm Implementations in JDK
Private key and Public Key Pair Generation
PKCS#8/X.509 Private/Public Encoding Standards
Digital Signature Algorithm and Sample Program
"keytool" Commands and "keystore" Files
KeyStore and Certificate Classes
Secret Key Generation and Management
Cipher - Encryption and Decryption
The SSL (Secure Socket Layer) Protocol
SSL Socket Communication Testing Programs
HTTPS (Hypertext Transfer Protocol Secure)
Outdated: Downloading and Installing JDK 10
Outdated: Downloading/Installing JDK 1.8.0 on Windows
Outdated: Downloading/Installing JDK 1.7.0 on Windows
Outdated: Downloading/Installing JDK 1.6.2 on Windows
Outdated: Downloading and Installing JDK 1.5.0 on Windows
►Outdated: Downloading and Installing JDK 1.4.1 on Windows