Steps for setting jdk Environment Variables
Steps:
1. After jdk is installed, right-click "computer" on the desktop of your computer ";
2. Select "attributes ";
3. Click "Advanced System settings" in the options on the left to go to system properties;
4. Select the "advanced" button and click "environment variables ";
5. There are three options under the system variable (S). Click "new ";
6. variable name (N): JAVA_HOME
Variable value (V) jdk installation address. For example, my jdk installation address is C: \ Program Files \ Java \ jdk1.7.0 _ 79.
7. Continue to create: variable name (N): classpath
Variable value (V): % JAVA_HOME % \ lib;
8. Find the variable path in the system variable, click it, and edit it. Remember, before the variable is worth it
Add % JAVA_HOME % \ bin;. Remember to separate.
Follow the preceding steps to ensure the setting is successful.
Verify that jdk environment variables are set:
1: win + R
2: Enter cmd
3: Enter java and a series of English letters will pop up. This step is correct for installation.
4: continue to enter javac, and a series of English letters will pop up. This indicates that the environment variables have been set successfully.
If not, please strictly check whether you follow my steps.