1. Download JDK to http://java.sun.com to download the JDK version you want. 2. Install the JDK to double-click the file you downloaded, install the JDK to your specified directory. EG C: /J2SDK1.4.2_043. Configure environment variables a. Click Right click on my computer -> Advanced -> Environment Variable B. Click the New button in the System Variable Area, pop up a new window, and the variable is filled with java_home The variable value fills your JDK installation directory EGC: /J2SDK1.4.2_04 and then click the OK button. C. Editing the PATH variable of the system variable area to add% java_home% / bin;% java_home% / jre / bin; added to the path. If Oracle is installed, you want to add it to the Oralce setting. 4. Test C: /> Java -Version Java Version "1.4.2_04" Java (TM) 2 Runtime Environment, Standard Edition (Build 1.4.2_04-B05) Java Hotspot (TM) Client VM (Build 1.4.2_04-B05, Mixed Mode) If the above information appears, and the version is consistent with the version you just installed, please congratulations, please have a successful installation of JDK.