The Java language environment is built:
1. Clear what is IRE,JDK (JRE Java Runtime, with virtual machine JVM)
2. Download the JDK
3. Installing the JDK
4. Configure Environment variables
5. Verify that it is successful
(Java program developed with JDK, to be run by JRE)
To configure an environment variable step:
Computer (right-click)-Properties-Advanced system settings-environment variables
1. New system variable: java_home
C:\Program Files (x86) \java\jdk1.6.0_10 (your JDK installation path)
2. Modify System Variables: PATH
%java_home%\bin;%java_home%\jre\bin
3. New system variable: CLASSPATH
.; %java_home%\lib;%java_home%\lib\tools.jar (to Add. Indicates the current path)
CMD---java-version
Temporary configuration:
1.set Enter view all environment variables
2.set Path
3.set path haha only valid in the current window
4.set Path = (copy path)
5.set path=haha;%path%
(The environment variable value of the DOS window before start continues)
Configuration of Java Environment variables