src/share/classes/java/lang/ProcessBuilder.java

Print this page

        

@@ -936,10 +936,15 @@
      * <p>This method checks that the command is a valid operating
      * system command.  Which commands are valid is system-dependent,
      * but at the very least the command must be a non-empty list of
      * non-null strings.
      *
+     * <p>A minimal set of system dependent environment variables may 
+     * be required to start a process on some operating systems. 
+     * As a result, the subprocess may inherit additional environment variable 
+     * settings beyond those in the process builder's {@link #environment()}.
+     *
      * <p>If there is a security manager, its
      * {@link SecurityManager#checkExec checkExec}
      * method is called with the first component of this object's
      * {@code command} array as its argument. This may result in
      * a {@link SecurityException} being thrown.