To install JVM on Windows we need to executable files for JRE or JDK from the official of Java. The compilation takes place as a just-in-time compilation (JIT compilation). To do this, the program block to be executed is first compiled for the target system and then called. This looks for the entry point of the program (in the case of Java the main () method) and starts execution there. Java programs can be run on any system that has a JVM that meets the specifications.Īfter the source text has been converted into bytecode, it can be transferred to the JVM.
In contrast to Java programs themselves, the JVM is not platform-independent, but a native program for the respective target platform. It comes along with Java Runtime Environment (JRE) and Java Development Kit (JDK) packages made available by Oracle corporation, which are the commercial implementation of Java, based on the OpenJDK runtime. Actually, JavaVM is an interpreter for executing programs written in the Java programming language. In simple words, Java Virtual Machine (JVM) is a software platform developed by the OpenJDK project to provide virtual machine to run Java written programs.