1 // Create a running process for a non existent executable.
2 // Verify that IOException is thrown.
3 import java
.io
.IOException
;
8 public static void main(String
[] args
)
13 Runtime r
= Runtime
.getRuntime();
14 String
[] a
= { "blablabla_failure" };
18 Process p
= r
.exec(a
);
19 System
.out
.println("bad");
21 catch (IOException ioe
)
23 System
.out
.println("ok");
28 System
.out
.println(ex
.toString());