Java environment Variables and JDK, JRE, JVM

Source: Internet
Author: User

First, JDK,JRE,JVM understanding: JDK Full Name Java Development Kit is the Java SDK, the core of the entire Java, including the Java Runtime Environment JRE, Java Toolkit and Java Basic Class library;

The JRE full name Java Runtime Environment is a collection of environments required for Java to run, including the JVM and Java core class libraries, and the JVM full name Java Virtual machine, the Java VM, which implements

The Java language is cross-platform, (the OS can run software applications written in Java as long as the appropriate JVM is installed).

The entire running process is as follows:

The source program (through the compiler, the Java file compilation), the bytecode file (that is, the file ending with the. Class) is saved to the hard drive (JVM, interpreter, under each version), which is interpreted as the OS executable file--run the program locally

Second, setting the environment variable

To perform these steps, you must add an environment variable by adding the appropriate command through a certain command.

Java_home setting the path to the cost of the JDK

Path takes the location command through path to fetch the bin in the JDK.

ClassPath to implement Java's corresponding functions, the Java Core Library, these files will be placed in the JDK file in the Lib path

Note: the front ".;" Back again with the Lib path

Java environment Variables and JDK, JRE, JVM

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.