Java installation win10 tutorial: first download the JDK; then configure the user variables and system variables; then configure the system variable path and add the path value to the path; finally test whether it is successful.
java installation tutorial win10
1. Download JDK
If you do not modify the installation path, Keep clicking Next and install it
Related learning recommendations: java basic tutorial
2. Configuration Environment variables
1. User variables
Create a new user variable, the variable name is: JAVA_HOME, the variable value is; C:\Program Files\Java\jdk1.8.0_131, that is JDK installation path
2. System variables
Create a new system variable, the variable name is: JAVA_HOME, the variable value is: C :\Program Files\Java\jdk1.8.0_131, which is the path of JDK installation
3. Configure the system variable path and add the path value to path
In the head of the system variable path, add
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
or in the tail of the path, add
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
. In fact, pay attention to the difference with the previous one. The delimiter;, pay attention to the half-width semicolon
4. Test whether it is successful
win r or directly enter cmd, Enter the command line
Enter: javac, Java, etc. to test
##Related recommendations:
The above is the detailed content of How to install java tutorial win10. For more information, please follow other related articles on the PHP Chinese website!