How to Write GCJ Application
Writing an GCJ application is similar to writing any application.
How to compile a GCJ Application
This is how to compile and link with gcj in one step (Gao 2003):
[user]$ gcj --main=HelloWorld -o HelloWorld HelloWorld.java
How to run a GCJ Application
This is how to run a GCJ Application:
[user]$ ./HelloWorld Hello World!