Java respawn process

Posted by Bart van Heukelom on Stack Overflow See other posts from Stack Overflow or by Bart van Heukelom
Published on 2010-06-15T14:47:25Z Indexed on 2010/06/15 14:52 UTC
Read the original article Hit count: 244

Filed under:
|
|
|
|

I'm making an editor-like program. If the user chooses File->Open in the main window I want to start a new copy of the editor process with the chosen filename as an argument. However, for that I need to know what command was used to start the first process:

java -jar myapp.jar blabalsomearguments // --- need this information
> Open File (fileUrl)
> exec("java -jar myapp.jar blabalsomearguments fileUrl");

I'm not looking for an in-process solution, I've already implemented that. I'd like to have the benefits that seperate processes bring.

© Stack Overflow or respective owner

Related posts about java

Related posts about process