Uses of Class java.lang.ProcessBuilder (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
java.lang.ProcessBuilder

- Packages that use ProcessBuilder
  Package | Description
  --- | ---
  java.lang | Provides classes that are fundamental to the design of the Java programming language.

- - ### Uses of ProcessBuilder in java.lang

    Methods in java.lang that return ProcessBuilder
    Modifier and Type | Method and Description
    --- | ---
    `ProcessBuilder` | ProcessBuilder.`command(List<String> command)` Sets this process builder's operating system program and arguments.
    `ProcessBuilder` | ProcessBuilder.`command(String... command)` Sets this process builder's operating system program and arguments.
    `ProcessBuilder` | ProcessBuilder.`directory(File directory)` Sets this process builder's working directory.
    `ProcessBuilder` | ProcessBuilder.`inheritIO()` Sets the source and destination for subprocess standard I/O to be the same as those of the current Java process.
    `ProcessBuilder` | ProcessBuilder.`redirectError(File file)` Sets this process builder's standard error destination to a file.
    `ProcessBuilder` | ProcessBuilder.`redirectError(ProcessBuilder.Redirect destination)` Sets this process builder's standard error destination.
    `ProcessBuilder` | ProcessBuilder.`redirectErrorStream(boolean redirectErrorStream)` Sets this process builder's `redirectErrorStream` property.
    `ProcessBuilder` | ProcessBuilder.`redirectInput(File file)` Sets this process builder's standard input source to a file.
    `ProcessBuilder` | ProcessBuilder.`redirectInput(ProcessBuilder.Redirect source)` Sets this process builder's standard input source.
    `ProcessBuilder` | ProcessBuilder.`redirectOutput(File file)` Sets this process builder's standard output destination to a file.
    `ProcessBuilder` | ProcessBuilder.`redirectOutput(ProcessBuilder.Redirect destination)` Sets this process builder's standard output destination.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.