JDK installation and environment variable configuration, jdk environment variable configuration
Tools/Environment
JDK/Win 7X64
Procedure
1.Download JDK
: Http://www.oracle.com/technetwork/java/javase/downloads/index.html
Download the appropriate installation package based on the operating system, which is windows x64
2. Install JDK
Two installation directory prompts will appear during the installation process. Jdk is installed for the first time, and jre is installed for the second time. We recommend that you install both of them in different folders in the same java folder. (The jdk and jre cannot all be installed in the root directory of the java folder. An error occurs when they are installed in the same folder, because the jdk directory contains a jre. Read this document if you do not understand it ).
As shown in
3. Configure Environment Variables
After JDK is installed, configure the environment variables: Computer → properties → advanced system settings → advanced → environment variables → System Variables
4. Check whether the configuration is successful
Run cmd and enter java-version (there is a space between java and-version)
If the version information is displayed, the installation and configuration are successful.