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?
Thanks<br />Karthik<br />SCJP 1.4, CCNA.<br /> <br />"Success is relative. More the success, more the relatives."