Jdk (Java se jdk) Installation and environment variable configuration strategy, jdk
21:00:55Introduction to jdk installation and environment variable configuration1. Download the jdk installation package with a download link ghost. First. Install jdk and Second. Install jre. We recommend that you install the two files in different subfolders in the same folder. (Jdk and jre cannot be installed in the root directory of the same folder, and jdk and jre can easily be installed in the same folder,
The corresponding jdk installation directory is also selected, and the jre is selected, which complies with the previous statement. 3. Configure environment variables to Open Computer System Properties → advanced → environment variables, 1) create a JAVA_HOME variable with the variable value being the jdk installation directory. 2) create a CLASSPATH variable and enter the variable value .; % JAVA_HOME % \ lib; % JAVA_HOME % \ lib \ tools. jar (note the first one) 3) Find the Path variable → edit, enter % JAVA_HOME % \ bin at the end of the variable value; % JAVA_HOME % \ jre \ bin; note that the original variable value is not followed by the; number, you must add it. System variable configuration is complete. 4. Check whether the configuration is successful at the command prompt. Run cmd and enter java-version (there is a space between attention: java and-version). A java version is displayed, indicating that the configuration is successfully installed. Go on the java journey ~ Thank you!
21:20:23