From cefca85a282eeda350152b27d7609f3955f51cd9 Mon Sep 17 00:00:00 2001 From: Ivan Hrasko Date: Fri, 18 Oct 2024 13:50:18 +0200 Subject: [PATCH] Use Java 21 in start-controller.sh Update checks in start-controller.sh to require Java 21. Signed-off-by: Ivan Hrasko --- .../start-script/src/main/resources/start-controller.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lighty-resources/start-script/src/main/resources/start-controller.sh b/lighty-resources/start-script/src/main/resources/start-controller.sh index 0b717ca270..d43c1eac37 100755 --- a/lighty-resources/start-script/src/main/resources/start-controller.sh +++ b/lighty-resources/start-script/src/main/resources/start-controller.sh @@ -9,10 +9,10 @@ if [ -z ${JAVA_HOME} ]; then JAVA_HOME=`java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home' | sed -e 's/^.*java.home = \(.*\)$/\1/'` fi; -# Make sure we are using Java 17+ +# Make sure we are using Java 21+ JAVA_VERSION=`${JAVA_HOME}/bin/java -version 2>&1 | head -1 | cut -d'"' -f2 | sed '/^1\./s///' | cut -d'.' -f1` -if [ -z ${JAVA_VERSION} ] || [ ${JAVA_VERSION} -lt 17 ]; then - echo "Java 17+ is required to run this application!" +if [ -z ${JAVA_VERSION} ] || [ ${JAVA_VERSION} -lt 21 ]; then + echo "Java 21+ is required to run this application!" exit -1 fi;