Execution Environment
See also: Java Runtime EnvironmentOracle's Java execution environment is termed the Java Runtime Environment, or JRE.
Programs intended to run on a JVM must be compiled into a standardized portable binary format, which typically comes in the form of .class files. A program may consist of many classes in different files. For easier distribution of large programs, multiple class files may be packaged together in a .jar file (short for Java archive).
The Java application launcher, java
, offers a standard way of executing Java code. Compare javaw
.
The JVM runtime executes .class or .jar files, emulating the JVM instruction set by interpreting it, or using a just-in-time compiler (JIT) such as Oracle's HotSpot. JIT compiling, not interpreting, is used in most JVMs today to achieve greater speed. There are also ahead-of-time compilers that enable developers to precompile class files into native code for particular platforms.
Like most virtual machines, the Java virtual machine has a stack-based architecture akin to a microcontroller/microprocessor. However, the JVM also has low-level support for Java-like classes and methods, which amounts to a highly idiosyncratic memory model and capability-based architecture.
Read more about this topic: Java Virtual Machine
Famous quotes containing the words execution and/or environment:
“I will soon be going out to shape all the singing tomorrows.”
—Gabriel Péri, French Communist leader. Letter, July 1942, written shortly before his execution by the Germans. Quoted in New York Times (April 11, 1943)
“Today the young actors regard their environment with rage and disgust. They regard their Master not as disciples regard their Master, but as slaves regard their Master.”
—Judith Malina (b. 1926)