Current location - Health Preservation Learning Network - Healthy weight loss - What is the relationship between JRE and JVM?
What is the relationship between JRE and JVM?
Simply put, jre includes jvm, which is the core virtual machine for running java, and running java programs requires not only the core virtual machine, but also other class loaders, bytecode checkers, and a large number of basic class libraries. In addition to the jvm, jre also includes other environment support for running java programs.

Jre is a java runtime environment, the full name of which is java runtime environment, and it is a necessary condition for java programs to run. Jvm (java virtual machine), that is, java virtual machine, is a virtual computer that can run java bytecode files.

Extended data

JRE is an indispensable running environment for running programs written based on Java language. It is also through it that Java developers can publish their own programs to users. JRE includes Java virtual machine (JVM), runtime class library and Java application launcher, which is an essential component for running Java programs.

Unlike the well-known JDK, JRE is a Java runtime environment, not a development environment, so it does not contain any development tools (such as compilers and debuggers) and is only for users who use Java programs.

Pyramid structure JDK=JRE+JVM+ others? Running Java programs generally requires users to install JRE environment on their computers. Without jre, java programs cannot run; Without java programs, jre is useless.