Install the JDK Wizard for related parameter settings. As shown in figure:
Installing the program's related features, as shown in the figure:
Select the path of the installation, either customized or default to the path. As shown in figure:
After the successful installation, the test is really successful installation, click the "Start"----"Run"----input CMD, in the command prompt input "java-version" and press ENTER, the following figure, that is, the installation was successful. As shown in figure:
The following starts with configuring environment variables, right-clicking My Computer---properties-----advanced---environment variables, as shown in the figure:
Select New System variable--eject the new System Variable dialog box, enter "Java_home" in the Variable Name text box, enter the installation path for the JDK in the Variable Value text box (that is, the folder path for step 5), and click OK, as shown in the figure:
In the System Variables option area, view the path variable, or if it does not, create a new path, or select the variable, click the Edit button, and add the%java_home%\bin;%java_home%\jre\bin at the beginning of the Variable Value text box. or direct "%java_home%\bin;", click OK button, as shown in figure:
View the CLASSPATH variable in the System Variables option area, or if it does not, create a new variable classpath, or select the variable, click the Edit button, and add the starting position of the variable value text box.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; ". As shown in figure:
The test environment variable is now configured successfully or not. Enter "JAVAC" in the DOS command Line window, and the output Help information is configured correctly. As shown in figure:
Attention matters
Remember not to miss out on the last ";" Symbol.