How to create a independant process from java?

We know that we can create a subprocess from Java using Runtime.exec() call. Is there any way to create a new independant process(i.e. without parent-child relationship) so that newly created process will remain even if the parent process is killed by operating system?
[276 byte] By [Karthikeyana] at [2007-10-3 1:05:04]
# 1

Your question is missing some information that illustrates the problem or constraint, since what you ask can be done. The following 1-line program, when executed in Windows using java xx, initiates Notepad and then exits, leaving Notepad running and the cmd window available for further use

Runtime.getRuntime().exec("Notepad.exe");.

ChuckBinga at 2007-7-14 18:01:31 > top of Java-index,Desktop,Runtime Environment...
# 2

Your code works fine in case of normal termination. But in my case, my Swing Application is killed forcefully by a windows process where it enumerates all the child processes and kills them also. Here i want my child applicaion to exist even after parent(Swing applcation) gets killed forcefully.

Karthikeyana at 2007-7-14 18:01:31 > top of Java-index,Desktop,Runtime Environment...
# 3
It sounds like you need to seek an alternative way to exit the Java app that doesn't involve using a Windows process that also kills the children.
ChuckBinga at 2007-7-14 18:01:31 > top of Java-index,Desktop,Runtime Environment...
# 4
Yes. You are right. My Java application will need to call a process which will kill and restart my application. But when the process kills my Java application, it itself got killed. So my application doesnt restart.
Karthikeyana at 2007-7-14 18:01:31 > top of Java-index,Desktop,Runtime Environment...