Java environment variable configuration method in Windows 7
08:30:25 Source: [url =] programming Eden [/url] Author: programming Eden
Java environment variable configuration method in Windows 7:
1. Right-click "my computer"-> Properties
600) makesmallpic (this, 418); "Height =>
Select the "advanced system settings" option in the left navigation bar. Are you familiar with this?
600) makesmallpic (this, 441); "Height =>
Continue to select the "environment variable" option in the lower right corner
2. Configure Java environment variables in win7
600) makesmallpic (this, 407); "Height =>
Perform the following configuration under "system variables:
(1) Create-> variable name: java_home variable value: D:/Java/jdk1.6.0 _ 12 (this is just my JDK installation path)
(2) edit-> variable name: Path to add % java_home %/bin at the beginning of the variable value; % java_home %/JRE/bin
(3) create-> variable name: classpath variable value:.; % java_home %/LIB; % java_home %/lib/dt. jar; % java_home %/lib/tools. Jar
(4) edit-> variable name: java_home, variable value: D:/Java/jdk1.6.0 _ 10
Note: When the set variable is at the end, do not add ";".
3. test whether the environment variable is set successfully.
In the lower-left search box, type
CMD
Or press the "win + R" key. The "win" key is the Microsoft icon in the middle of "Ctrl" and "Alt;
Enter the Java, javac, and Java-version commands respectively.
If the following information appears:
600) makesmallpic (this, 391); "Height =>
600) makesmallpic (this, 394); "Height =>
600) makesmallpic (this, 390); "Height =>
4. Your Java environment variable is configured successfully!
Note:
If
'Javac' is neither an internal or external command nor a running program.
Or batch files.
This error indicates that the Java environment variable configuration has failed. Check it carefully!