Name: dbT83986 Date: 12/21/98
Feature request:
all that remains of the getenv() function is the method that returns an error message:
/** Obsolete.
* Gets an environment variable. An environment variable is a
* system dependent external variable that has a string value.
* @param name the name of the environment variable
* @return the value of the variable, or null if the variable is
* not defined.
*
*/
public static String getenv(String name) {
throw new Error("getenv no longer supported, use properties and -D instead: " + name);
}
The need for this particular call is very important while I continue to work with
an existing cross platform application that creates environment variables during
the runtime. There is no 'easy' way to get these values. Most of the deprecation
documentation is misleading (it states that getenv() is replaced with getProperty()).
Please return the funtionality where ever it is...
(Review ID: 38108)
======================================================================
- duplicates
-
JDK-4810109 automate adding of environment variables rather than use -D
- Closed
- relates to
-
JDK-4488646 Java executable and System properties need to support Unicode on Windows
- Open
-
JDK-4519026 (process) Process should support Unicode on Windows
- Open
-
JDK-4244896 (process) Provide Process.waitFor(timeout), Process.destroyForcibly() and Process.isAlive()
- Closed