System.getenv()
.public final class EnvironmentVariables
extends java.lang.Object
Utility class for obtaining the values of shell environment variables. Note that the names of the defined variables are uppercase, and their lookup is also a case-insensitive operation.
Modifier and Type | Method and Description |
---|---|
static java.util.Map |
get()
Deprecated.
Gets all default process environment variables.
|
static java.lang.String |
getVariable(java.lang.String name)
Deprecated.
Gets the value of the environment variable with the given name.
|
public static final java.lang.String getVariable(java.lang.String name)
null
if the variable
is not set.public static final java.util.Map get()