How to set the return code
807603Nov 19 2007 — edited Nov 20 2007Hello
I would like to set the return code (or exit code) from my Java application, and I found System.exit as the way
System exit also terminates all threads and exists the virtual machine, but I would like a rather "normal" way to return a code
to the native OS or to the calling application.
Is there another way to do this, like a return from main ? I am a C++ programmer and I am surprized to find that in Java
it is not so easy for an application to return the code to the caller.
Thank you,
Timothy Madden,
Romania