I never tried it myself though but anyhow check this link http://stackoverflow.com/questions/1049795/whats-wrong-with-using-system-err-in-java.