Environment variables for win10 installation and configuration of JDK
Configuration process:
The first step is to install jdk:
Official website: jdk download
The second step is to add environment variables:
Right click on my computer-Properties-
At this point, you can set the user's environment variable, or you can set the system's environment variable.
If you set the user's environment variable, only this user can use it, not other users.
If you set the environment variable for the system, then every user of this computer can use it.
Key points:
The first step
Step two
Then create a new PATH and set the variable value% JAVA_HOME%\ bin;%JAVA_HOME%\ jre\ bin
Step three
Create a new CLASSPATH and set the variable value.;% JAVA_HOME%\ lib\ dt.jar;%JAVA_HOME%\ lib\ tools.jar
Pay attention to the front. Represents the current directory. Then click the OK button. (note that there is a point in front)
Try typing java or javac in cmd
This means it worked.