Can I compile Java to native code?

barroco picture barroco · Jun 7, 2010 · Viewed 49.5k times · Source

Is there any way to compile from Java to standalone (or library) machine code without requiring a JVM?

Answer

James Kingsbery picture James Kingsbery · Jun 7, 2010

There used to be a tool called GCJ that was part of GCC, but it's been removed. Now, all the links in the GCC site re-direct to their non-GCJ equivalents.

NB: the comments all refered to my original answer saying you can compile Java to native code with GCJ.