Retrieved result from IVMRunner exit [message #62678] |
Fri, 20 June 2003 08:57 |
Roel De Meester Messages: 15 Registered: July 2009 |
Junior Member |
|
|
How can I know that A IVMRunner has exited.
I have a Java Program That I call in the following way..
IVMRunner vmRunner = vmInstall.getVMRunner(ILaunchManager.RUN_MODE);
MRunnerConfiguration vmConfig = new VMRunnerConfiguration("MyJavaClass",
classPath);
ILaunch launch = new Launch(null, ILaunchManager.RUN_MODE, null);
vmRunner.run(vmConfig, launch, _monitor);
//Wait for JVM to exit????
This program will create a file in an Eclipse Ifolder, so i need to do a
refreshLocal of that Folder, but only AFTER the vmRunner has Exited, and
only when the status of the VM on exit was 0.
//main of MyJavaClass looks like this.
main()
{
///stuff to do
System.exit (iStatus);
}
Questions.
1)How do I wait until this VM has exited before calling the refreshLocal?
2)How do I retrieve the exit status of that VM?
|
|
|
Powered by
FUDForum. Page generated in 0.02921 seconds