Hi all,
I have just tried to create an automatic update button for an application of mine. First my app checks if a newer version is available, if so it then it is supposed to start an updating app which downloads the latest version of the program (which is an executable Jar). The updater then replaces the old version with the new one and starts the new version running. In order to replace the old file with the new one I need to shut down the old version.
I have tried using System.exit(0); but this seems to shut down my updater as well
Could someone please let me know where I am going wrong here? How can I shut down the original app without shutting down the updater?