Jdk (Java se jdk) Installation and environment variable configuration strategy, jdk

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.