How to restart application by writing kotlin's code?
s
spierce7
08/29/2021, 7:37 PM
Why are you trying to restart?
In general - in order to restart the process, I think you could just run the new process using a Java`ProcessBuilder` and then run
exitProcess(0)
spierce7
08/29/2021, 7:39 PM
If for some reason that doesn’t work, I’d create another mini application that I’d run in a
ProcessBuilder
. It’d kill the current process, start another, and then kill itself.