title: How to prevent calls to System.exit() from terminating the JVM?
body: <p>I am almost certain this is impossible, but it's worth a try.</p>
  
  <p>I am writing a command line interface for a certain tool. I am talking about a Java application that invokes another Java application. The tool calls <code>System.exit</code> after execution, which in turn terminates my own execution environment. I don't want that.</p>
  
  <p>Is there any way to ignore <code>System.exit</code> calls?</p>