#1604 upgrade java version check to accept all versions greater than 6
This commit is contained in:
parent
443b1c8165
commit
cdb85d5974
6
refine
6
refine
@ -839,10 +839,8 @@ checkJavaMajorVersion() {
|
|||||||
# Java 9+ starts with x using semver versioning
|
# Java 9+ starts with x using semver versioning
|
||||||
major=`echo ${java_ver} | sed -E 's/([0-9]+)(-ea|(\.[0-9]+)*)/\1/g'`
|
major=`echo ${java_ver} | sed -E 's/([0-9]+)(-ea|(\.[0-9]+)*)/\1/g'`
|
||||||
fi
|
fi
|
||||||
|
if (( ${major} < 7 )); then
|
||||||
JAVA_VERSION=$(echo ${major} | egrep '^(6|7|8|9)')
|
error "OpenRefine requires Java version 7 or later. If you have multiple versions of Java installed, please set the environment variable JAVA_HOME to the correct version."
|
||||||
if [ -z "$JAVA_VERSION" ] ; then
|
|
||||||
error "OpenRefine 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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user