Well, its quite unlike that you want to convert your Java App to Native Code, because of its Platform Independence. But when an application is targetted to one particular platform probably we can convert to the native Code, that improves the speed of your app.
Now the next Question would be .. How to Convert it?
Here is a code which converts to the Native Code…
//The #include directive treats
//text in the file specified by
//filename as if it appeared in the
//The #define directive defines a macro.
#define MAIN_CLASS “MyFrame.jar”
//malloc() allocates a block of size
//bytes from the memory heap.
char* cmdline = (char*)malloc(1024 );
//sends formatted output to a string
sprintf( cmdline, “javaw.exe -jar %s”, MAIN_CLASS );
//system() invokes the
//DOS command interpreter
system( cmdline );
//deallocate the memory