I want to create a self-updating jar.
I’ve got the first part down: I download the most up to date version. I’d like to delete the current version, though, and that’s where I’m stuck. I do the updating at the very end, and I’d like to delete the current jar.
I’ve tried the File.delete() and the File.deleteOnExit() methods to no avail. Any advice?
Thanks.
Java web start is a good choice for that. A more original method would be to have a very limited core application that relies on other jars that you can upgrade from the core app.