Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Spawn a child process of the current (like Linux fork)

843798Mar 5 2005 — edited Mar 7 2005
Is there a way to fork a new process like the currently running one (just like fork() in linux).
I can use Runtime.exec(...) to execute the same main class like the one running, but this does not always work. For example, when the file is running from a .JAR file.
How can I FORK() another process?

Regards,
Ahmed Saad
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2005
Added on Mar 5 2005
4 comments
400 views