First, install the JDK
JDK website address: http://www.oracle.com/technetwork/java/javase/downloads/index.html
On the download page, you will need to choose to accept the license and download the corresponding version according to the different configuration of your computer system. (Currently operating system 64-bit for example)
Second, after the successful download, double-click the download file.
Always click "Next" to perform the installation.
After the installation is complete, the folder is visible.
Third, configure environment variables.
You need to configure three:
Java_home: Configuring the JDK Installation path
PATH: Configuring the location of the JDK command file
CLASSPATH: Configuring the location of a class library file
Configure Java_home to specify the JDK installation directory.
Configuration Path,path variable system itself already exists, only need to click the path variable edit, add Jdk-10/bin.
Configure the classpath, you need to create a new system variable, the Jdk-10/lib can be added (before the path must be preceded by.; [Full period and semicolon]).
Iv. confirm that the Java environment is installed successfully after saving.
Open the cmd command and enter the Java carriage return to display the usage hints.
Enter Javac carriage return to display the usage hints.
This shows that there is no problem in configuring the Java environment.
Java Development Environment Building