···1414@rem limitations under the License.
1515@rem
1616@rem SPDX-License-Identifier: Apache-2.0
1717+@rem
17181819@if "%DEBUG%"=="" @echo off
1920@rem ##########################################################################
···4445%JAVA_EXE% -version >NUL 2>&1
4546if %ERRORLEVEL% equ 0 goto execute
46474747-echo.
4848-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
4949-echo.
5050-echo Please set the JAVA_HOME variable in your environment to match the
5151-echo location of your Java installation.
4848+echo. 1>&2
4949+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
5050+echo. 1>&2
5151+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
5252+echo location of your Java installation. 1>&2
52535354goto fail
5455···58595960if exist "%JAVA_EXE%" goto execute
60616161-echo.
6262-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
6363-echo.
6464-echo Please set the JAVA_HOME variable in your environment to match the
6565-echo location of your Java installation.
6262+echo. 1>&2
6363+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
6464+echo. 1>&2
6565+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
6666+echo location of your Java installation. 1>&2
66676768goto fail
6869