2017-01-08 21:00:55
JDK Installation and environment variable configuration introduction 1Download the JDK installation package with a download link http://www.oracle.com/technetwork/java/javase/downloads/index.html2Install the JDK Select installation directory, where two prompts will appear during installation. First. Install the JDK, Second. Install the JRE. The small series recommends that two are installed in different subfolders of the same folder. (JDK and JRE cannot be installed in the root directory of the same folder, JDK and JRE are installed in the same folder error-prone) The small part is installed like this,
The installation directory for the corresponding JDK is chosen, and the JRE is chosen, which conforms to the previous statement.3. Configure Environment variables open computer system properties → advanced → environment variables, 1) Create a new java_home variable, and the value of the variable is the installation directory of the JDK. The small part is 2) new CLASSPATH variable, variable value filled in.; %java_home%\lib;%java_home%\lib\tools.jar (note the first point) 3) look for Path variable → edit, variable value last input%java_home%\bin;%java_home%\jre\bin; Note that the value of the original variable is not followed by the number, it must be added. The system variable configuration is complete.4. Verify that the configuration is successful at the command prompt, run the cmd input java-version (there are spaces between Attention:java and-version), that the Java version appears, indicating that the installation configuration was successful. Fly in the Java journey ~THANK you!
2017-01-08 21:20:23
JDK (Java SE JDK) installation and environment variable configuration introduction