From 4dbf348078e2c87f458c37e9b1315e2c3c588363 Mon Sep 17 00:00:00 2001 From: AmilaSamith Date: Tue, 15 Oct 2024 10:26:54 +0530 Subject: [PATCH] update startup script update java version check logic to support JDK 21 --- distribution/src/scripts/micro-integrator.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/src/scripts/micro-integrator.sh b/distribution/src/scripts/micro-integrator.sh index a76f0a3b4c..3b483e8701 100644 --- a/distribution/src/scripts/micro-integrator.sh +++ b/distribution/src/scripts/micro-integrator.sh @@ -199,9 +199,9 @@ fi # ---------- Handle the SSL Issue with proper JDK version -------------------- java_version=$("$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}') java_version_formatted=$(echo "$java_version" | awk -F. '{printf("%02d%02d",$1,$2);}') -if [ $java_version_formatted -lt 1100 ] || [ $java_version_formatted -gt 1700 ]; then +if [ $java_version_formatted -lt 1100 ] || [ $java_version_formatted -gt 2100 ]; then echo " Starting WSO2 MI (in unsupported JDK)" - echo " [ERROR] WSO2 MI is supported only between JDK 11 and JDK 17" + echo " [ERROR] WSO2 MI is supported only between JDK 11 and JDK 21" exit 0 fi