How to trap (interrupt) signal from JVM

How to capture (interrupt) signal from JVM in case of JVM termination due to Error/RuntimeException in shell script (Unix/Linux OS). Is it possible?

I am executing an java class from shell script. In cetain condition it throws RuntinmeException.

I want to capture the signal from terminating JVM in case of the RuntimeException.

How to acheive this ? Can any one solve this problem ?

[408 byte] By [Dharmendra_Tripathia] at [2007-10-3 10:00:43]
# 1
the try/catch block is your only hope i believe
MickeyOnJavaa at 2007-7-15 5:19:21 > top of Java-index,Java HotSpot Virtual Machine,Specifications...