As opposed to from a Java command?
I'm thinking of making `main` catch exceptions and exit with an error code, because the JVM makes this undefined.
This API was never meant to be called programatically, but perhaps some people do?
I'm a bit wary of introducing `System.exit` calls as we've been bitten by them quite often in the past, but I think that in a `main(String[])` method when there's an exception throw by the main thread, that's the right thing to do. It allows the process callers to know something went wrong. At least with the main thread.
--
Stéphane Épardaud