use javac/java returncode to decide that console should be hided