Is there a way to set the stream System.err so everything written to it is ignored? (i.e. discarded not outputted)
Just set Error to dommy implementation:
System.setErr(new PrintStream(new OutputStream() { @Override public void write(int arg0) throws IOException { // keep empty } }));
You need to have special permission to do that.
RuntimePermission("setIO")