JDK Description:
JDK (Java Development Kit): Java Language Development Toolkit, which mainly contains the Java Runtime Environment (JRE and Java class Library) and Java tools
javac: Compiler, turn source program into bytecode file (. Class)jar: Package Tool to package related class files into a single file (. jar)Java: Running the compiled Java program (. Class)
JRE (Java Runtime Environment): Java Runtime Environment, mainly includes JVM (Java Virtual machine), Java Core Class library and supporting files
JVM (Java virtural machine): Java virtual machines, Java and platform-agnostic is mainly its compilation on the Java virtual machine, the Java virtual machine translated into a specific platform for machine instruction execution
When installing the JDK, you will usually be prompted to install the JRE, so that after installation you will find a JDK package and a JRE package in the Java folder, and a JRE package in the inside of the JDK, and the JRE package in the inner layer is identical to the function and composition of the package.
PATH, CLASSPATH, java_home configuration:
Path: The role is to specify the command search path, execute the command below the command line, such as Javac compile the Java program, it will go to the path specified by the paths variable to find out if the corresponding command program can be found.
Absolute path:
Value:*; C:/Program Files/java/jdk1.8.0_77/bin; With other paths * separated by English semicolon
Classpath: Specifies the search path for a class that has already been written, the Dt.jar and Tools.jar in the Lib subdirectory under the JDK installation directory need to be set to Classpath, and it is important to note that the current directory "." must also be added to the variable.
Absolute path:
Value:.; C:/Program Files/java/jdk1.6.0_21/lib/dt.jar; C:/Program Files/java/jdk1.6.0_21/lib/tools.jar
Java_home: It points to the JDK's installation directory, and software such as Eclipse/netbeans/tomcat finds and uses the installed JDK by searching for java_home variables. A relative path is produced by Java_home.
Java_home:c:/program files/java/jdk1.8.0_77
Path:*;%java_home%\bin;
Classpath:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
Java Environment Configuration