6723762: Fix shell command that gets java version (uses 2>1)
authorohair
Tue, 08 Jul 2008 15:23:04 -0700
changeset 779 01733213abc6
parent 777 c63133add9db
child 780 cbe15531645c
6723762: Fix shell command that gets java version (uses 2>1) Reviewed-by: pbk
hotspot/make/linux/makefiles/buildtree.make
--- a/hotspot/make/linux/makefiles/buildtree.make	Wed Jul 02 15:38:47 2008 -0400
+++ b/hotspot/make/linux/makefiles/buildtree.make	Tue Jul 08 15:23:04 2008 -0700
@@ -335,7 +335,7 @@
 	$(BUILDTREE_COMMENT); \
 	echo '. ./env.sh'; \
 	echo "if [ -z \$$JAVA_HOME ]; then { $(NO_JAVA_HOME_MSG); exit 0; }; fi"; \
-	echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>1 > /dev/null"; \
+	echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>&1 > /dev/null"; \
 	echo "then"; \
 	echo "  $(WRONG_DATA_MODE_MSG); exit 0;"; \
 	echo "fi"; \