Skip to content

Commit

Permalink
Update the script to support 17 and 21
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaiyarasiganeshalingam committed Nov 24, 2024
1 parent 40e74b5 commit bb1ebee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,10 @@ 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 0107 ] || [ $java_version_formatted -gt 1100 ]; then
if [ $java_version_formatted -lt 1100 ] || [ $java_version_formatted -gt 2100 ]; then
echo " Starting WSO2 MI (in unsupported JDK)"
echo " [ERROR] MI is supported only on JDK 1.8, 9, 10 and 11"
echo " [ERROR] WSO2 MI is supported only between JDK 11 and JDK 21"
exit 0
fi

CARBON_XBOOTCLASSPATH=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,10 @@ 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 0107 ] || [ $java_version_formatted -gt 1100 ]; then
if [ $java_version_formatted -lt 1100 ] || [ $java_version_formatted -gt 2100 ]; then
echo " Starting WSO2 MI (in unsupported JDK)"
echo " [ERROR] MI is supported only on JDK 1.8, 9, 10 and 11"
echo " [ERROR] WSO2 MI is supported only between JDK 11 and JDK 21"
exit 0
fi

CARBON_XBOOTCLASSPATH=""
Expand Down

0 comments on commit bb1ebee

Please sign in to comment.