Either I'm doing something silly or Sun is. How come something like:
java -version > version.txt
Still prints out to stdout and leaves version.txt empty? I'm checking out the exit code, and it's still 0, so is not that's writing to stderr.
I need this because I'm building a test-environment tool and want to check if the version of Java is adequate, I was planning to catch that version output, but now I'm stuck.
I'm on OS X Leopard, Java version 1.6.0_20.