Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Retrieved result from IVMRunner exit
Retrieved result from IVMRunner exit [message #62678] Fri, 20 June 2003 08:57
Roel De Meester is currently offline Roel De MeesterFriend
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?
Previous Topic:Error saving files in clearcase view
Next Topic:Extending %PATH% in a launch configuration?
Goto Forum:
  


Current Time: Fri Nov 08 23:23:51 GMT 2024

Powered by FUDForum. Page generated in 0.02272 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top