/* System.getenv("PATH") = C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;.... * */ public class MainClass { public static void main(String[] a) throws Exception { System.out.println("System.getenv(\"PATH\") = " + System.getenv("PATH")); } }