Z
zero
Hallo,
In an application I have the following block of code:
=== import ===
if ( ok.equals(cmd) ) { // Process the
selection
String selection =
firmsTable.get((byte)choiceList.getSelectedIndex())
;
try {
ProcessBuilder pk =
new ProcessBuilder("java", "Greetings");
Map<String, String> env = pk.environment();
env.put("LANG", myLocale.toString());
env.put("FIRMACODE", selection.substring(2, 5));
env.put("FIRMANAAM", selection.substring(5 ))
Process ppk = pk.start();
} catch (IOException ioex) { System.err.println(ioex); }
Runtime runtime = Runtime.getRuntime();
runtime.exit(0);
}
=== tropmi ===
When "Greetings" does not exist, I would expect an IO exception. But I
get nothing. Why?
Groetjes,
Hans.
As far as I can tell, this code just runs java with "Greetings" as
argument, right? So why would you expect an IOException? As long as the
java executable exits, this code doesn't care about the rest of the
argument list.