System: getenv(String key) : System « java.lang « Java by API






System: getenv(String key)

    

/*
 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"));
  }
}

           
         
    
    
    
  








Related examples in the same category

1.System.exit(int status)
2.System.in
3.System.in.read()
4.System.out
5.System: arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
6.System: clearProperty(String key)
7.System: console()
8.System: currentTimeMillis()
9.System: getProperty(String name)
10.System.getProperty ("user.dir")
11.System: getProperty(String key, String def)
12.System: getProperties()
13.System.identityHashCode(Object x)
14.System: nanoTime()
15.System.setErr(PrintStream err)
16.System: setIn(InputStream in)
17.System: setOut(PrintStream err)
18.System: setProperty(String key, String value)