From 9025a64dd016370be72a2ea6f4ccf6a151df1b60 Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Tue, 16 Aug 2011 16:47:22 +0000 Subject: [PATCH] make refine work with java7 as well git-svn-id: http://google-refine.googlecode.com/svn/trunk@2207 7d457c2a-affb-35e4-300a-418c747d4874 --- refine | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refine b/refine index 8cae15b07..3ace186e1 100755 --- a/refine +++ b/refine @@ -834,7 +834,7 @@ if [ ! -x "$JAVA" ] ; then error "Could not find the 'java' executable at '$JAVA', are you sure your JAVA_HOME environment variable is pointing to a proper java installation?" fi -JAVA_VERSION=`$JAVA -version 2>&1 | grep version | cut -d ' ' -f 3 | egrep ^\"1\.6` +JAVA_VERSION=`$JAVA -version 2>&1 | grep version | cut -d ' ' -f 3 | egrep '^\"1\.(6|7)'` if [ -z "$JAVA_VERSION" ] ; then error "Google Refine requires Java version 6 or later. If you have multiple versions of Java installed, please set the environment variable JAVA_HOME to the correct version." fi