I am working on a project where my job is to crash the JVM by executing a program. In the JVM I have Tomcat running with a web app deployed in it. As soon as the JVM crashes I get "Page not found. Server may be down" error in the browser for the web app as with the JVM, Tomcat has also stopped.
Now, I want to generate a popup as soon as JVM crashes. The popup will say "JVM has crashed!". Can you please tell me how to write such a code?
Thanks in advance!