Markus Fischer wrote:
I'm not very confident with Java so I wasn't able to figure out how I can signal the shell that an error occurred in this special case.
Catch the error and then do: System.exit(n); where n is the error number you want to return to the shell.See also http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#exit(int)
