diff --git a/distribution/zip/jballerina-tools/resources/language-server-launcher.bat b/distribution/zip/jballerina-tools/resources/language-server-launcher.bat index 77f4872e1033..b8007acfae54 100644 --- a/distribution/zip/jballerina-tools/resources/language-server-launcher.bat +++ b/distribution/zip/jballerina-tools/resources/language-server-launcher.bat @@ -42,11 +42,11 @@ rem -------------------------- set BALLERINA_HOME ----------------------------- rem TODO: Validate BALLERINA_HOME rem %~sdp0 is expanded pathname of the current script under NT with spaces in the path removed set BALLERINA_HOME=%~sdp0..\..\..\.. -if exist "%BALLERINA_HOME%\..\..\dependencies\jdk-17.0.7+7-jre" goto setJava +if exist "%BALLERINA_HOME%\..\..\dependencies\jdk-21.0.5+11-jre" goto setJava goto checkJava :setJava -set JAVA_HOME="%BALLERINA_HOME%\..\..\dependencies\jdk-17.0.7+7-jre" +set JAVA_HOME="%BALLERINA_HOME%\..\..\dependencies\jdk-21.0.5+11-jre" goto checkJava :checkJava diff --git a/distribution/zip/jballerina-tools/resources/language-server-launcher.sh b/distribution/zip/jballerina-tools/resources/language-server-launcher.sh index 9773613fbfce..0f6b4d26b445 100755 --- a/distribution/zip/jballerina-tools/resources/language-server-launcher.sh +++ b/distribution/zip/jballerina-tools/resources/language-server-launcher.sh @@ -29,7 +29,7 @@ # ---------------------- Override JAVA_HOME for Installers ------------------- DIR="$(cd "$(dirname "$0")" && pwd)" -JAVA_PATH="$DIR/../../../../../../dependencies/jdk-17.0.7+7-jre" +JAVA_PATH="$DIR/../../../../../../dependencies/jdk-21.0.5+11-jre" if test -d "$JAVA_PATH"; then JAVA_HOME=$JAVA_PATH fi diff --git a/distribution/zip/jballerina/bin/bal b/distribution/zip/jballerina/bin/bal index aa123efd9e76..8004aa5d3c40 100755 --- a/distribution/zip/jballerina/bin/bal +++ b/distribution/zip/jballerina/bin/bal @@ -32,7 +32,7 @@ # OS specific support. $var _must_ be set to either true or false. # Set JAVA_HOME for installers -JAVA_PATH=$BALLERINA_HOME/../../dependencies/jdk-17.0.7+7-jre +JAVA_PATH=$BALLERINA_HOME/../../dependencies/jdk-21.0.5+11-jre if test -d "$JAVA_PATH"; then JAVA_HOME=$JAVA_PATH fi diff --git a/distribution/zip/jballerina/bin/bal.bat b/distribution/zip/jballerina/bin/bal.bat index fd907fe7eae9..68303cf4d3ac 100644 --- a/distribution/zip/jballerina/bin/bal.bat +++ b/distribution/zip/jballerina/bin/bal.bat @@ -34,8 +34,8 @@ rem ----- if JAVA_HOME is not set we're not happy ------------------------------ :checkJava set BALLERINA_HOME=%~sdp0.. -if exist %BALLERINA_HOME%\..\..\dependencies\jdk-17.0.7+7-jre ( - set "JAVA_HOME=%BALLERINA_HOME%\..\..\dependencies\jdk-17.0.7+7-jre" +if exist %BALLERINA_HOME%\..\..\dependencies\jdk-21.0.5+11-jre ( + set "JAVA_HOME=%BALLERINA_HOME%\..\..\dependencies\jdk-21.0.5+11-jre" ) if "%JAVA_HOME%" == "" goto noJavaHome