My program can, when directed, check a floppy for updates, verify the MD5
sums from another source, then copy the new Java classes to its own
directory tree. Once it does this, I'd like to restart the program so the
changes take effect.
What's the best way to do this?
I figure if I call the program's main class, it will run, but then I'll have
2 instances (the original and the one that's upgraded) running -- plus I'm
not sure if the new class I call will re-load the updated classes from
disk, since it's still run by the same JVM.
I know I can call a program through Runtime, but can I call a program from
Runtime, as if from the command line, and exit the first program, and have
the 2nd continue running?
Thanks!
Hal