#1605 add warning for java versions greater than 9

This commit is contained in:
Martin Robinson 2018-05-17 16:12:59 +01:00
parent cdb85d5974
commit 8798275b40

3
refine
View File

@ -842,6 +842,9 @@ checkJavaMajorVersion() {
if (( ${major} < 7 )); then if (( ${major} < 7 )); then
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." 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."
fi fi
if (( ${major} > 9 )); then
echo "WARNING: OpenRefine is not tested and not recommended for use with Java versions greater than 9."
fi
} }
# -------------------------- script ----------------------------- # -------------------------- script -----------------------------