Search code examples
javaloadsavememory-dump

Save and load a (Java) program's state


Suppose you're short on time and you're looking for a program with certain features, and you find one, except it lacks one feature - it cannot save and load its state. Is it possible to achieve this on OS level, or with another program, that can take the whole thing, write it to a file, and then at a later time, load it back into memory? How?

Specifically for me, this is about a Java program, but any more information on this topic is welcome.


Solution

  • One (heavy and easy) solution could be to use VirtualPC and install the program on a virtual OS.