Is there a way to set the stream System.err so everything written to it is ignored? (i.e. discarded not outputted)
You could redirect the err Stream to /dev/null
/dev/null
OutputStream output = new FileOutputStream("/dev/null"); PrintStream nullOut = new PrintStream(output); System.setErr(nullOut);