Entries from May 2009

Wednesday, May 13th, 2009

Capturing Uncaught Java Exceptions in a Bash Shell Script

I was burned one to many times by chaining dependent java programs together in a bash script. By default the java executable will return zero if the program exited manually, and 1 if there was an uncaught RuntimeException. Let's say test.sh runs a java program, we want to run it 3 times, but if it [...]