1 // Create a process and verify failure exit code.
4 public static void main(String
[] args
)
8 Runtime r
= Runtime
.getRuntime();
9 String
[] a
= { "false" };
10 Process p
= r
.exec(a
);
12 System
.out
.println(c
== 1 ?
"ok" : "bad");
16 System
.out
.println(ex
.toString());