sqlline.sh script uses JAVA_HOME now
@@ -35,6 +35,11 @@ SCRIPTS_HOME="${IGNITE_HOME_TMP}/bin"
source "${SCRIPTS_HOME}"/include/functions.sh
+#
+# Discover path to Java executable and check it's version.
+#
+checkJava
+
#
# Discover IGNITE_HOME environment variable.
#
@@ -51,4 +56,4 @@ CP="${IGNITE_LIBS}"
CP="${CP}${SEP}${IGNITE_HOME_TMP}/bin/include/sqlline/*"
-java -cp ${CP} sqlline.SqlLine -d org.apache.ignite.IgniteJdbcThinDriver $@
\ No newline at end of file
+"$JAVA" -cp ${CP} sqlline.SqlLine -d org.apache.ignite.IgniteJdbcThinDriver $@
\ No newline at end of file
