Process p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.FileName = "java.exe"; p.StartInfo.Arguments = " -jar application.jar"; p.OutputDataReceived += new DataReceivedEventHandler(p_OutputDataReceived); p.Start();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)