JDK installation and environment variable configuration, jdk environment variable configuration
Step 1: Download the JDK and double-click it to install it. In this step, click Change to install the JDK in the specified path.
NOTE: If no installation directory is required, you can set all the default settings. You do not need to make any changes. Click Next twice.
Step 2: After JDK is installed, configure the environment variable computer → properties → advanced system settings → advanced → environment variable as shown in Figure
Step 3:
System variable → search for Path variable → Edit
Enter D: \ Java \ jdk1.7.0 \ bin at the end of the variable value;
(Note that there is no; number at the end of the variable value of the original Path. If not, first enter; number and then enter the above Code)
Click OK.
Finally, check whether the configuration is successful. Run cmd and enter java-version (there is a space between java and-version)
If the version information is displayed, the installation and configuration are successful.
You can also enter java. If it appears, it indicates that the installation is successful.