I am not sure, you came across the similar situation or there is a solution for this problem.
I need to return an error code from my jar application to the calling application. This jar application does some core java functionality and if it finds any unusal situation while executing the code, then it returns with the error code to the calling function. The calling function may be a unix shell script.
Can I use System.exit(n) to return the error code? Can this return value be received by the calling function? Please let me know your answers