Java environment variable settings, java environment variables
Java environment variable settings
1. Install jdk, silly installation, http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2. Open cmd and enter java-version to view the installed jdk version.
3. Configure java environment variables
3. 1. right-click computer -----> properties -----> advanced system settings ------> environment variable ------> system environment variable, click New, variable name: JAVA_HOME, variable value: installation path (such as: D: \ Program Files \ Java \ jdk1.8.0 _ 131 );
Click OK!
3. 2. set the path. In the system environment variable, find the path and double-click it and enter; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin; At the end. (Note that the semicolon is used before and after; separated );
3.3 set the CLASS_PATH path. In the system environment variable, click New. The variable name is CLASS_PATH, and the variable value is :.; % JAVA_HOME % \ lib; % JAVA_HOME % \ lib \ tools. jar (note that the front is .;);
4. Open cmd and input javac, as shown in:
Configuration complete!