Differences and connections between jdk jre jvm and jrejvm

Source: Internet
Author: User

Differences and connections between jdk jre jvm and jrejvm

1. JDK -- java development kit

JDK is a java Development Kit. Basically, everyone who learns java will install JDK on the machine first, the JDK directory contains six folders, one src Class Library source code package, and several other declaration files. The following four folders are actually used when running java: bin, include, lib, and jre.
Bin: the most important part is the compiler (javac.exe)
Include: header file for java and JVM Interaction
Lib: Class Library
Jre: java Runtime Environment

JDK has the following three versions:

SE (J2SE), standard edition, standard edition, is a common version. It has been renamed Java SE since JDK 5.0. EE (J2EE), enterprise edition, and enterprise edition, which are used to develop J2EE applications, have been renamed Java EE since JDK 5.0. ME (j2e-micro edition) is mainly used for java applications on mobile devices and embedded devices. It has been renamed Java ME since JDK 5.0.

2. JRE -- java runtime environment

  JRE refers to the java Runtime Environment. In the JDK installation directory, you can find the jre Directory, which contains two folders bin and lib, and lib is the class library required by jvm work, jvm and lib are called jre. Therefore, after you write a java program and compile it into a. class program, JRE is essential to run a Java program (JDK is not required if you only run a compiled program ).

3. JVM -- java virtual machine

  JVM is what we often call a java virtual machine. It is the core of cross-platform java Implementation. All java programs are first compiled. class files, which can be executed on virtual machines. That is to say, the class does not directly correspond to the operating system of the machine, but indirectly interacts with the operating system through the Virtual Machine, the Virtual Machine releases the program to the local system for execution ().

4. Differences and connections

JDK contains JRE, while JRE includes JVM

Used in jdk Development

Jre Runtime

Jvm solves the problem of cross-platform: compiling class files into files recognized by other platforms

  

 

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.