We have requirement of creating a new process from Java. I know we can create new sub-processes by using ProcessBuilder
and Runtime.exec
but our requirement is to create a complete new process. In other words, we do not want to have the spawned process exit when the JVM does.
Does anyone have ideas how we can do this using Java API or a 3rd party framework?