Hi
I've figured out how to start an external program, but I can't seem to find out how to terminate my java program without having to kill the started process.
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe");
System.exit(0)
That won't work, it only works when I do this:
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe");
p.destroy();
System.exit(0)
But that's not what I want. I want to end my program and continue to run the external program. How to do this?