Skip to content

Commit

Permalink
Update script for jdk21
Browse files Browse the repository at this point in the history
  • Loading branch information
chamilaadhi committed Nov 28, 2023
1 parent f5df1b6 commit 22836f0
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 22836f0

Please sign in to comment.