This program invokes a non-java executable, waits for it to finish, and returns the result. I've included a C program, targetexe.c, that dumps its arguments to a log file and returns a numeric exit code.
The source
jinvoker.java targetexe.c