Review request for 7034570 - java.lang.Runtime.exec(String[] cmd, String[] env) can not work properly if SystemRoot not inherited

Alan Bateman Alan.Bateman at oracle.com
Fri Apr 15 09:54:15 UTC 2011


Michael McMahon wrote:
>
> On Windows, we are ensuring that SystemRoot will at a minimum always 
> be set.
Don't you still have the corner case where Runtime.exec is invoked with 
an empty array and SystemRoot is not in the environment (launched by an 
older JDK for example)? In that case we can't make SystemRoot available 
to the child process either.

-Alan



More information about the core-libs-dev mailing list