Skip to content

Commit

Permalink
Use Java 21 in start-controller.sh
Browse files Browse the repository at this point in the history
Update checks in start-controller.sh to require Java 21.

Signed-off-by: Ivan Hrasko <[email protected]>
  • Loading branch information
ihrasko committed Oct 18, 2024
1 parent 0588b01 commit cefca85
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ if [ -z ${JAVA_HOME} ]; then
JAVA_HOME=`java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home' | sed -e 's/^.*java.home = \(.*\)$/\1/'`
fi;

# Make sure we are using Java 17+
# Make sure we are using Java 21+
JAVA_VERSION=`${JAVA_HOME}/bin/java -version 2>&1 | head -1 | cut -d'"' -f2 | sed '/^1\./s///' | cut -d'.' -f1`
if [ -z ${JAVA_VERSION} ] || [ ${JAVA_VERSION} -lt 17 ]; then
echo "Java 17+ is required to run this application!"
if [ -z ${JAVA_VERSION} ] || [ ${JAVA_VERSION} -lt 21 ]; then
echo "Java 21+ is required to run this application!"
exit -1
fi;

Expand Down

0 comments on commit cefca85

Please sign in to comment.