To do so, you will need a native compiler. Unfortunately, the JDK does not ship with native compilers, and I am not familiar with any that are freely available. URLs for various native compilers and C translators can be found in the Resources section below. Further, some of the older compilers will not allow the dynamic addition of new classes at runtime. When choosing a compiler, carefully compare the compiler's feature list against your software's requirements, as expected JVM behaviors and features may not carry over to the compiled code.
Native compilers can also be expensive.
If you are concerned about performance, adaptive compiling technologies such as HotSpot and JIT have improved Java performance greatly. Happily, they keep getting better. About the author Tony Sintes is a principal consultant at BroadVision . Tony, a Sun-certified Java 1.1 programmer and Java 2 developer, has worked with Java since 1997.