Process.Start() and PATH environment variable
问题 I have the following trivial C# application that simply attempts to launch "jconsole.exe", which on my machine is located in C:\Programs\jdk16\bin. using System; using System.Diagnostics; namespace dnet { public class dnet { static void Main( string[] args ) { try { Process.Start("jconsole.exe"); Console.WriteLine("Success!"); } catch (Exception e) { Console.WriteLine("{0} Exception caught.", e); } } } } If my PATH environment variable is set to c:\windows;c:\windows\sytem32;c:\programs\jdk16