p = r.exec( "env" );
p = r.exec( ENV_COMMAND );
    public static Properties getEnvironment() throws Throwable {        Process p = null;        Properties envVars = new Properties();        Runtime r = Runtime.getRuntime();        if (isWindows) {            if (System.getProperty("os.name").toLowerCase().indexOf("windows 9") >= 0)                 p = r.exec( "command.com /c set" );            else                p = r.exec( "cmd.exe /c set" );        } else {            p = r.exec( "env" );        }        if (p != null) {            BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));            String line;            while( (line = br.readLine()) != null ) {                int idx = line.indexOf( '=' );                String key = line.substring( 0, idx );                String value = line.substring( idx+1 );                envVars.setProperty( key, value );            }        }        return envVars;    }