title: Preventing System.exit() from API
body: <p>I am using a third party library that does a <code>System.exit()</code> if it encounters exceptions. I am using the APIs from a jar. Is there anyway that I can prevent the <code>System.exit()</code> call because it causes my application to shutdown? I cannot decompile and recompile the jar after removing the <code>System.exit()</code> because of a lot of other licensing issues. I once came across an answer [to some other question that I do not remember] in stackoverflow that we can use the <code>SecurityManager</code> in Java to do something like this.</p>