10. Native Compilation with gcj

Using gcj, the GNU compiler for Java, it is possible to produce native executables from Java code. wx4j also works with gcj, so it is possible to produce completely native GUI applications written in Java. At the moment, you must build the native version of wx4j from the source distribution yourself. Once the native library is produced, you must use gcj to compile your Java sources and resources. Then link against the wx4j library that you built.