Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

External programs can be invoked from Java code using the exec() method of java.lang.Runtime class. As a result, a reference to the Process class is returned to the JVM. The exitValue() method can be used to observe the return value of the process. There are several nuances of Rutime.exec() that are discussed belowin this recommendation.

Noncompliant Code Example

...