You could try
java -version 1> test 2> test.error
to see if for some reason it sends the info to stderr

eric

> I am trying to redirect the version output of Java on a computer.  I
> run the command:
> 
> java -version > test
> 
> The commandline will then print out the version of Java and "test"
> will have nothing in it.
> 
> Is there some other way to capture the version?  I am putting this in
> a script to check if a computer needs a newer version of Java before a
> program can be ran.  

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to