diff --git a/buildjava.sh b/buildjava.sh index 0956bf606..f90cc9c42 100755 --- a/buildjava.sh +++ b/buildjava.sh @@ -17,7 +17,7 @@ if [ "${JAVAC}" == "" ] ; then fi # check the version -JAVA_FIVE=`java -version 2>&1 | grep version | /usr/bin/awk '{ print $3; }'| sed -e s/\"//g | sed -e s/java\ version//g | sed -e s/1\.5\..*// | wc -c` +JAVA_FIVE=`java -version 2>&1 | grep version | /usr/bin/awk '{ print $3; }'| sed -e s/\"//g | sed -e s/java\ version//g | sed -e s/1\.[01234]\..*// | wc -c` # if we have less than 5 characters (i.e. 1.5.0) then quit if [ "${JAVA_FIVE}" -le "5" ] ; then