environment variable configuration steps
1. Go to the Computer environment variable configuration page
Right-click the desktop computer icon, tap Properties----TAP Advanced system settings----Click Environment variables
2. Configuring Javahome, Path, and Classpath
Javahome Configuration
Click "New"------"Variable name (N)" Input java_home, "variable Value (V)" Input D:\Program files\java\jdk1.6.0, click OK
Path configuration
In System variables (S), locate the path, click Edit----- %java_home%\bin, or.;D: \ program Files\java\jdk1.6.0\bin; Add to Variable Value (V), click OK
Classpath configuration
Click "New"---------"variable name (N)" Input classpath, "variable Value (V)" input.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar or
.;D: \ program Files\java\jdk1.6.0\lib\dt.jar;.;D: \ Program Files\java\jdk1.6.0\lib\tools.jar, click "OK"---
Click "OK"----- click "OK", the environment variable configuration is complete
2. Testing
Start "Run", shortcut key ' Window+r ', enter cmd, click "OK", enter DOS command window
Run Command javac-----carriage return----display is configured successfully
Test success
Java environment variable Configuration