Skip to content

Commit

Permalink
Merge pull request #3685 from AmilaSamith/jdk21-support
Browse files Browse the repository at this point in the history
Update startup script for JDK 21
  • Loading branch information
AmilaSamith authored Oct 21, 2024
2 parents 73baa56 + 4dbf348 commit 229253d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distribution/src/scripts/micro-integrator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 229253d

Please sign in to comment.