The error is coming from your command shell, not from the Java program. It's complaining because "type" is still trying to write to its output, but that pipe was abruptly closd when the Java program terminated.