Output of running basic java command should go to dev/null on linux systems. It was still going to STDOUT on Ubuntu because the order of 2>&1 and /dev/null matters.