Download 1.1
:
You can go to the Sun Company website to download the URL: http://java.sun.com.
Note: The Windows version is downloaded.
You can also download Java 2 Standard Edition SDK 6.0 build 66 RC Alpha at http://www4.skycn.com/soft/3116.html ". Only j2sdk1.5 or a later version is supported. Of course, you do not have to download from the above site. You can also search for and download from Baidu. There are many such websites.
1.2 Installation
1.2.1 The installation process is as follows:
Figure 1. installation protocol. The next step can be continued only when you select "receive. For example.
Figure 2. Select the installation component and installation path.
Figure 3. Installation Process.
Figure 4. After JDK is installed, a prompt will be prompted to install JRE (Java Runtime Environment). This is the interface for selecting the installation component and installation path. For example.
Figure 6. Configure the plug-in browser.
Figure 7 install JRE.
Figure 8. Complete the installation process.
1.3 Configuration
Configure the Java environment variables. If the installation is complete, the program cannot be correctly run. You need to configure the variables. Right-click "My Computer icon" on the desktop, select "properties", and find the "advanced" tab, such:
Figure 9. view system attributes
Figure 10 Environment Variables
Figure 11. New System variable
On the desktop, right-click my computer and choose Properties> advanced> environment variables> system variables ", you can view and create system variables.
1.3.1 create a new system variable with the variable name java_home and the variable value: C:/jdk1.5.0 _ 06 (note that C:/jdk1.5.0 _ 06 is used because I installed JDK in C:/jdk1.5.0 _ 06: /jdk1.5.0 _ 06. Set this value according to the actual situation. In the future configuration, you can use "; % java_home %" to replace the Java installation directory ).
1.3.2 create a new system variable named classpath. The variable value is ..; % java_home %/lib. Note that there is an English ending and semicolon (".;") at the beginning, which must be at the beginning and must be indispensable.
1.3.3 find the system variable path and add "% java_home %/bin;" at the beginning of it. Note that there is an English ";" at the end.
1.4 check whether the configuration and installation are correct
Figure 12. Select the "run" command to run the "cmd" program. For example.
Figure 13 shows the interface for running the "cmd" command.
Figure 14: run the "Java" command. This is the running interface.
Figure 15: run the "javac" command. This is the running interface.
If you see the same result as above, it proves that the installation and configuration are correct.