First, JDK,JRE,JVM understanding: JDK Full Name Java Development Kit is the Java SDK, the core of the entire Java, including the Java Runtime Environment JRE, Java Toolkit and Java Basic Class library;
The JRE full name Java Runtime Environment is a collection of environments required for Java to run, including the JVM and Java core class libraries, and the JVM full name Java Virtual machine, the Java VM, which implements
The Java language is cross-platform, (the OS can run software applications written in Java as long as the appropriate JVM is installed).
The entire running process is as follows:
The source program (through the compiler, the Java file compilation), the bytecode file (that is, the file ending with the. Class) is saved to the hard drive (JVM, interpreter, under each version), which is interpreted as the OS executable file--run the program locally
Second, setting the environment variable
To perform these steps, you must add an environment variable by adding the appropriate command through a certain command.
Java_home setting the path to the cost of the JDK
Path takes the location command through path to fetch the bin in the JDK.
ClassPath to implement Java's corresponding functions, the Java Core Library, these files will be placed in the JDK file in the Lib path
Note: the front ".;" Back again with the Lib path
Java environment Variables and JDK, JRE, JVM