Open christoph-wulf opened 9 years ago
You could write out a batch script that sleeps for ~5 seconds and runs your application. Launch it from your application then immediately quit.
Agreed, it would also be simple to implement a Java main class/method to implement the restart generally. As neandrake suggested, it would work like:
We've implemented an automatic update for a Scala and SWT based application we run with WinRun4J on Windows. The updater downloads the new JARs and overwrites the INI file for a new classpath at the next start. Afterwards the application exists and the user has to start the application again to use the updated version. I'd like to make that restart automatically. I can't just start the new application again from command line because of single.instance=window
Would it be possible to do somehow trigger this restart? I think Eclipse got a similar feature depending on the exit code.