Java Learning 2-jdk and JRE and JVM differences _jdk Download Installation _ environment variable configuration

Source: Internet
Author: User
Tags java se

The difference between a JDK and a JRE and a JVM

Jdk:java Development Kit-java Development tool

Jre:java Runtime Environment-java Operating environment

Jvm:java Virtual Machine-java VM

Relationship: JDK contains jre,jre containing JVM

Two Java development environment configuration

1. Download JDK:www.oracle.com (Download->java (right)->java SE (includes JavaFX) | Early Access--->java Platform (JDK) 8u101/8u102---> choose the correct version to download the JDK.

2. Install JDK--same as installing other software (eg: installation directory: C:\Program file\java\jdk ...)

3. Configure Java Environment variables

A. Set the JAVA_HOME environment variable:

How-to: new type, environment variable, advanced system settings, properties---The variable name: Java_home variable value: C:\Program file\java\jdk ...) click Are you sure

B. Configure path:

Procedure: My Computer, properties, advanced system settings, advanced-environment variable, find path will ' C:\Program File\java\jdk....\bin; ' Copy to variable value, multiple directories separated by semicolons

'%java_home%\bin ' is copied to the variable value, and multiple directories are separated by semicolons

c.classpath:jdk5.0 versions above may not be configured with Classpath.

D. Verify that the Java environment variable is configured successfully: DOS window input cmd---Input java command---have the Java command explain the configuration is successful!

Java Learning 2-jdk and JRE and JVM differences _jdk Download Installation _ environment variable configuration

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.