common/tools/envinfo.pl
changeset 931 5a526b63fb08
parent 905 9ed73a51c728
--- a/common/tools/envinfo.pl	Tue Mar 16 16:28:06 2010 +0000
+++ b/common/tools/envinfo.pl	Thu Mar 18 10:14:16 2010 +0000
@@ -151,8 +151,8 @@
 
 # java
 my $java_ver = 'N.A.';
-my $java_out = `java -version`;
-$java_ver = $1 if ($zip_out =~ /^java version (.*)/m);
+my $java_out = `java -version 2>&1`;
+$java_ver = $1 if ($java_out =~ /^java version (.*)/m);
 push @environment_info, {name=>'java', version=>$java_ver};
 
 for my $tool_info (@environment_info)