1. Download the JDK (JDK>JRE>JVM);
2. Install the JDK;
3. Configure the environment variables.
Java_home: Configure the JDK installation path;
PATH: Configuring the location of the JDK command file (javac.exe,java.exe)
CLASSPATH: Configuring the location of the class library file (Lib)
A.path,classpath (Configuration of environment variables)
1. The main purpose is to retrieve files conveniently, if you execute a file, do not go to the directory where the file is executed, then the operating system will be retrieved in the path path, unique to the Windows operating system.
2.ClassPath is the classpath, the Java runtime looks for the path to the class file, the Java environment variable.
B. Command execution Javac compile and Java run.
My Computer (right-click)-Properties, advanced system settings-environment variables.
Configuration of the Java development environment