Is there any special reason for java -version results going to stderr ?
For example, this command is executed from the Windows prompt line:
java -version > java_version.txt
leaves the java_version.txt file empty.
EDIT: The same thing happens with help printed after java.exe run without any parameters.
EDIT: Just because of sheer curiosity, I checked if this was always the case, and it turned out that it really is. java -version goes into stderr in JDK 1.1.8, as well as in JDK 1.2.2, however, java.exe outputs do not work without any parameters.
java stdout stderr
Jagger
source share