1)java_home indicates the JDK installation path,
Just the path you chose when you installed it. C:\Program files\java\jdk1.8.0_121,
This path includes the Lib,bin,JRE and other folders (this variable is best set, since running Eclipse will need to follow this variable);
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/8E/D9/wKioL1jNDsSjvqS3AAEl259e_H8383.png-wh_500x0-wm_ 3-wmp_4-s_3581525608.png "title=" 1.png "alt=" Wkiol1jndssjvqs3aael259e_h8383.png-wh_50 "/>
2)path allows the system to identify Java commands under any path , set to:%java_home%\bin;%java_home%\jre\bin
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8E/DB/wKiom1jNDt6BeqLNAAD93Q1nhFk738.png-wh_500x0-wm_ 3-wmp_4-s_2390861373.png "title=" 2.png "alt=" Wkiom1jndt6beqlnaad93q1nhfk738.png-wh_50 "/>
3)CLASSPATH is the Java Load Class (class Orlib) path, only the class in CLASSPATH ,the Java command can be recognized,
set as:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar ( to be added . Represents the current path )
Note:%java_home% is referring to the previously specified java_home;
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/8E/DB/wKiom1jNDvLzAQQJAAEMX1WU4JQ876.png-wh_500x0-wm_ 3-wmp_4-s_2344167579.png "title=" 3.png "alt=" Wkiom1jndvlzaqqjaaemx1wu4jq876.png-wh_50 "/>
4) in cmd command line input: Java–versionjavac
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/8E/D9/wKioL1jNDwGgDf-ZAAGa5Na1lOQ528.png-wh_500x0-wm_ 3-wmp_4-s_1342122949.png "title=" 4.png "alt=" Wkiol1jndwggdf-zaaga5na1loq528.png-wh_50 "/>
5) Write the first Java program:
This is the first program I wrote examplel_l
public class Examplel_l {
publicstatic void Main (String []args) {
System.out.print (" Hello ! you are welcome to study The Java language. ");
}
}
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M01/8E/DB/wKiom1jNDxOzPTxGAABKbLYBXUk507.png-wh_500x0-wm_ 3-wmp_4-s_2063462706.png "title=" 5.png "alt=" Wkiom1jndxozptxgaabkblybxuk507.png-wh_50 "/>
5) Compiling examplel_l
1. First CD to create the examplel_l directory
2. Then compile the command as:Javacexamplel_l.java
3. execute the compiled file javaexamplel_l
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/8E/D9/wKioL1jNDyLwwlr1AAB-iOkQAWE996.png-wh_500x0-wm_ 3-wmp_4-s_3289589409.png "title=" 6.png "alt=" Wkiol1jndylwwlr1aab-iokqawe996.png-wh_50 "/>
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/8E/D9/wKioL1jNDzayXMZDAAAO477itpY195.png-wh_500x0-wm_ 3-wmp_4-s_494361266.png "title=" 7.png "alt=" Wkiol1jndzayxmzdaaao477itpy195.png-wh_50 "/>
This article is from the "Qinnengbuzhuo" blog, make sure to keep this source http://4468289.blog.51cto.com/4458289/1907944
Java language Programming JDK configuration environment