Java compiler

This is an old revision of this page, as edited by Hervegirod (talk | contribs) at 18:16, 30 April 2007 (typo). 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. Even though each compiler uses a different technique, they all generate the same class file format.

Most Java compilers, Jikes being the only exception, do virtually no optimization, leaving this until runtime to be done by the JRE[citation needed].

Using this generated Java bytecode, the Java Virtual Machine (JVM) loads the class files and either interprets the bytecode or just-in-time compiles it to machine code and then possibly optimizes it using dynamic compilation.

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

References

  1. ^ The last 1.22 version is of October 2004 [1]. The project CVS activity for the last 12 months is null [2]