Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Runtime.exec() return codes

843798Nov 10 2006 — edited Feb 21 2007
running on SuSe and RH Linux...

I issued Runtime.getRuntime().exec("program") to launch "program". I waited for the return/exit code of the process from which I intentionally abnormally killed the process using "kill -9" giving me a return code value of 129. However if i run "program" directly in a shell console, and stop it using "kill -9", the exit code for this seems to give me value 137.

Can someone tell me why these exit codes differ from spawning "program" directly from a Linux shell console vs. using Java to exec the process?


Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2007
Added on Nov 10 2006
1 comment
783 views