/** * Crazyandcoder * Contact: * QQ : 275137657 * Email: [Email protected] * Reprint please indicate the source!
Java environment variable Configuration
First, download the JDK
Website
Ii. Installation of JDK
"Next", the default installation path.
Third, configure environment variables
- Environment variables, advanced property settings, properties, right-click Computers
- Select "System Variables"
Create the following two system variables:
- Variable name: Java_home variable value: C:\Program files\java\jdk1.7.0_11
- Variable name: CLASSPATH variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
Edit the PATH environment system variable: Precede the variable with the quote "%JAVA_HOME%\BIN;%JAVA_HOME%\JRE\BIN;", note that the last side needs to add a semicolon ";". Click "OK", at this time the Java environment variable is configured, let us test it, whether the configuration is correct.
iv. Verifying environment Variables"win+r" input cmd, open the DOS command window, enter Javac, Java-version, if the following content is correct.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Java environment variable Configuration