Dumping a Java program into a file and restarting it
<p>I was just wondering if it's possible to dump a running Java program into a file, and later on restart it (same machine)</p>

<p>It's sounds a bit weird, but who knows</p>

<p>--- update -------</p>

<p>Yes, this is the hibernate feature for a process instead of a full system. But google 'hibernate jvm process' and you'll understand my pain. </p>

<p>There is a question for linux on this subject (<a href="http://stackoverflow.com/questions/2134771/hibernate-a-process-in-linux">here</a>). Quickly, it's possible to hibernate a process (far from 100% reliable) with <a href="http://cryopid.berlios.de/" rel="nofollow">CryoPID</a>.</p>

<p>A similar question was raised in <a href="http://stackoverflow.com/questions/424341/are-there-any-java-vms-which-can-save-their-state-to-a-file-and-then-reload-that">stackoverflow</a> some years ago.</p>

<p>With a JVM my educated guess is that hibernating should be a lot easier, not always possible and not reliable at 100% (e.g. UI and files). </p>

<hr>

<p>Serializing a persistent state of the application is an option but it is not an answer to the question.</p>
