Hi,
Check if this works out:
Use an instance of System.Diagnostics.Process to invoke the Java app.
This would then give you the control to end the process via
the CloseMainWindow() and/or Kill() method.
Example:
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = @"C:\Windows\Notepad.exe";
p.Start();
MessageBox.Show("Before Close");
p.CloseMainWindow();
//You may want to check if the process HasExited or else force it
with a Kill();
(Try replacing the Notepad.exe path to your java.exe and pass in the command
line arguments to point to your java app)
Kaarthik
On Sun, Jul 12, 2009 at 5:51 PM, Alan <[email protected]> wrote:
>
> I am using a VB.NET GUI to kick off (via command line execution) a
> Java application. If the user needs to stop it, is there an easy and
> clean way to do this?
>
> Thanks, Alan
>
>
>
--
Kaarthik,
http://coding-passion.blogspot.com