I was just wondering if it\'s possible to dump a running Java program into a file, and later on restart it (same machine)
It\'s sounds a bit weird, but who knows
Probably Terracotta can this: http://www.terracotta.org
I am not sure but they are supporting server failures. If all servers stop, the process should saved to disk and wait I think.
Otherwise you should refactor your application to hold state explicitly. For example, if you implement something like runnable and make it Serializable, you will be able to save it.