Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Accessing PATH Environment Variable

>> This may be a dumb question, but why can't you use System.getenv("PATH")?

> In Sun's 1.4 jre this is how its implemented;
> public static String getenv(String name) {
> 	throw new Error("getenv no longer supported, use properties and -D
> instead: " + name);
>     }

Strangely enough in 1.5 it is undeprecated again (and seems to work to get
the PATH environment variable), see

Yet another reason to switch to 1.5 :-)


Back to the top