0

Is there a way to create a process from a java application, that can can survive the creator process?

I use ProcessBuilder to create child processes in my application, but I can't see a way to configure the process to survive the shutdown of my "main" application.

Rene Groeschke
  • 27,999
  • 10
  • 69
  • 78
  • See http://stackoverflow.com/questions/1038223/launching-a-subprocess-which-survives-parent-process?rq=1 which will have links to other threads. – mattias Nov 12 '14 at 22:14

1 Answers1

0

If you're running another binary, processes started using exec would be created in a separate process:

Runtime.getRuntime().exec("yourprogram");

Jasvir
  • 516
  • 2
  • 5