Skip to content

Commit

Permalink
Merge pull request #13298 from chamilaadhi/jdk21
Browse files Browse the repository at this point in the history
Update script for jdk21
  • Loading branch information
PasanT9 authored Mar 19, 2024
2 parents 92bc377 + 965f19c commit c4c8dd7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,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 Carbon (in unsupported JDK)"
echo " [ERROR] CARBON is supported only between JDK 11 and JDK 17"
echo " [ERROR] CARBON is supported only between JDK 11 and JDK 21"
fi

CARBON_XBOOTCLASSPATH=""
Expand Down

0 comments on commit c4c8dd7

Please sign in to comment.