I need to capture error code and errros if possible from java. I am executing vb6Test.exe(its a VB6 app) from process Builder. I have used process.waitFor() also to wait and see if it executed successfully. When I execute it .exe blows up but in java I cannot see errors and error code returned is also 0. If I am right then the vb6.exe should return something like system.exit(1) like in java.
Can anybody tell me what might be the code in VB6 to exit with return code when error occurs.
Thanks