First step: Install
To successfully configure a variable, you install the JDK and JRE, and the installation is successful before the next environment configuration can be made.
JDK Download | JRE download
Step Two: Configure
Start configuring environment variables, right-click My Computer---properties-----advanced---environment variables
- Select "New System Variable"--pops up the "New System Variable" dialog box, enter "Java_home" in the "Variable name" text box, enter the installation path of the JDK in the "Variable Value" text box (that is, the folder path of step 5), click the "OK" button,
- View the path variable in the system variables options area, if it does not exist, create a new variable path, otherwise 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 a direct "%java_home%\bin;
- View the CLASSPATH variable in the system Variables options area, and if it does not exist, create a new variable classpath, otherwise select the variable, click the Edit button, and add "in the start position of the Variable value text box."; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;".
Step Three: Detect
The configuration of the test environment variable is now successful or not. Enter "JAVAC" in the DOS command line window and the output Help information is configured correctly.
2017-10-0818:14:59
Java environment variable settings