How to trap System.exit() in code called from JNI?

You are SOL unless you want to learn to use ASM to edit the java bytecode.

That's super disappointing, but thanks for the answer! – PerilousApricot Dec 28 '10 at 17:56.

You do not need bytecode editing for so simple case, a lot of security handling is implemented in the good old java. System. SetSecurityManager(SecurityManager) throw some Error (like ThreadDeath) in checkExit() and assuming System.

Exit(int) erm Runtime.getRuntime(). Exit(int) is invoked in the same thread, it should do it.

Sure enough. Righter than me. – bmargulies Nov 5 at 20:46.

How to trap System.exit() in code called from JNI - Stack Overflow.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions