I have a c++ wrapper over a java application, and c++ uses the jni library to launch a jvm, and invoke the main method of the application. I have a requirement that, when the java application exits, it has to pass the 'status code' to the wrapper somehow. By status code, I mean, "return 0" or "return 1" or something like that which we do in C's main function. But as the main method is void return type, I don't know how to handle this. Can someone help?
LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL
LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL