Process p=new Process(); p.StartInfo.FileName = "C:\\Program files\\Java\\bin\\javac.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.Arguments = "C:\\Hello.java"; p.StartInfo.RedirectStandardInput = true; p.StartInfo.CreateNoWindow = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.CreateNoWindow = true; p.Start(); p.StandardOutput.ReadToEnd(); p.WaitForExit();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)