Tabris
July 28th, 1999, 07:12 PM
Greetings;
I need some help concerning win32 processes which are spawned from a JAVA application.
win32 processes can be easily spawned using Runtime...
...
String m_ProcessToExecute = "notepad.exe"; // for example
Process m_ThisProcess;
m_ThisProcess = Runtime.getRuntime().exec(m_ProcessToExecute);
...
My problem arises when I terminate the java app: I need to leave the processes I earlier invoked to run independently of the java app, and when I re-execute my java app, I must retrieve a reference to the previously invoked processes.
I tried serializing the Processes, but I get an exception about the Process object not being serializable. I need this to work without having to resort to JNI. Thanks in an advance to those of you who know how to do this!
Thanks,
Tabris
I need some help concerning win32 processes which are spawned from a JAVA application.
win32 processes can be easily spawned using Runtime...
...
String m_ProcessToExecute = "notepad.exe"; // for example
Process m_ThisProcess;
m_ThisProcess = Runtime.getRuntime().exec(m_ProcessToExecute);
...
My problem arises when I terminate the java app: I need to leave the processes I earlier invoked to run independently of the java app, and when I re-execute my java app, I must retrieve a reference to the previously invoked processes.
I tried serializing the Processes, but I get an exception about the Process object not being serializable. I need this to work without having to resort to JNI. Thanks in an advance to those of you who know how to do this!
Thanks,
Tabris