JDK (Java SE JDK) installation and environment variable configuration introduction

Source: Internet
Author: User
Tags java se

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

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.