I think the JVM is similar to the .NET Framework, correct? Then what is the JRE?
Thank you!
I think the JVM is similar to the .NET Framework, correct? Then what is the JRE?
Thank you!
According to Wikipedia:
The JVM, which is the instance of the 'JRE' (Java Runtime Environment), comes into action when a Java program is executed. When execution is complete, this instance is garbage collected. JIT is the part of the JVM that is used to speed up the execution time. JIT compiles parts of the byte code that have similar functionality at the same time, and hence reduces the amount of time needed for compilation.
The JRE includes the JVM, which is what actually interprets the byte code and runs your program. To do this the JVM uses libraries and other files provided by the JRE.
I believe you would say that the JRE is like the .NET Framework, while the JVM is like the .NET CLR. There are probably some important differences here I am not aware of though.
The JVM is the process that runs the Java code, and the JRE are all files distributed to form the "environment" in which the JVM runs.
The JRE is the environment within which the virtual machine runs.
JRE - JAVA Runtime Environment
JVM - JAVA Virtual Machine
JRE is the container, JVM is the content.