I have an application which sometimes shuts down the JVM ("HotSpot Virtual Machine Error, Internal Error"). The problem is a known problem and will probably be solved some time in the future.
In this situation I just want to restart the application, but this is not possible using a traditional restart of thread etc., since the JVM is in fact shut down.
Is it possible to run the application through another JVM, which will restart the JVM in case this shuts down?
Which technique would I use to set this up - JNI, and how? An example/solution is very much appreciated.