O1 Java Installation:
Download from Java official website: https://www.java.com/zh_CN/
Installation Tutorial: http://jingyan.baidu.com/article/03b2f78c137ec85ea237aec7.html
1. 2, 3,
4. 5, 6,
7.
Can be installed according to the above tutorial
These two folders will be available after the download is successfully installed
O2 Environment Configuration:
Right click on the computer----properties----Click Advanced System settings------environment Variables---"In the system variables:
1) Create a new java_home variable in the system variable, the value of the variable is: C:\Program files\java\jdk1.6.0_14 (fill in according to their own installation path) (Note: No sign before and after) is the path of the circle in the diagram copy and paste
2) New CLASSPATH variable, variable value is:.; %java_home%\lib;%java_home%\lib\tools.jar (note: Front pastry, semicolon, back semicolon)
3) Add the variable value in the path variable (existing without new):%java_home%\bin;%java_home%\jre\bin (Note the ";" between the variable values) (Note: Write at the front of the original variable value is unsigned, followed by a semicolon)
The installation and configuration are complete by this step.
O3 Verify the configuration is successful:
Run--"input cmd
Show this diagram
Then enter Java to display this figure
Input java-version Display:
Input Javac Display
Description the configuration was successful.
O4 the problems and solutions I personally encounter
Issue: Javac always show not internal or external commands during configuration environment
Workaround
I personally changed path :%java_home% in the system variable to full path C:\Program files\java\jdk1.6.0_14 (filled in according to your own installation path)
This is the path in java-home .
change in Classpeth . ; C:\Program files\java\jdk1.8.0_131\lib\dt.jar;c:\program Files\java\jdk1.8.0_131\lib\tools.jar(fill in% according to your installation path) Java-home% as in the path above note that the starting point cannot be lost)
I don't know the exact reason.
WIN10 System Configuration Java environment and some processing methods of encountering problems