Java compiler

This is an old revision of this page, as edited by Spectre 25gt (talk | contribs) at 04:07, 25 February 2007. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computing, a Java compiler is a computer program that translates programs in the Java programming language source code to Java class files.

As of 2006, the following are major Java compilers:

The compiler compiles the Java source code to a Java class file that contains the generated Java bytecode. The Java Virtual Machine (JVM) loads the class file and either interprets the bytecode or just-in-time compiles it to machine code and then possibly optimizes it using dynamic compilation. Most Java compilers, Jikes being the only exception, do virtually no optimization, leaving this until runtime to be done by the JRE. Even though each compiler uses a different technique, they all generate the same class file format.

The very first Java compiler developed by Sun Microsystems was written in C using some libraries from C++.[citation needed]