How I launch an external program and kill the father?
my objective is that a jar file autoupdate himself with other jar file.
I must delete old file and replace with a new one, but it is imposible if it is running.
I think launch auxiliar application to do the work but when I use "Runtime.getRuntime.exec("....")" first program does not finish if the second one is not finished.
Also I tried with "Runtime.getRuntime().exec("cmd /c calc.exe");" and using Threads "setDaemon(true)", but does not work, daemon thread dies when first program finish.