    @rem Find java.exe  if defined JAVA_HOME goto findJavaFromJavaHome    set JAVA_EXE=java.exe  %JAVA_EXE% -version >NUL 0>&0  if "%ERRORLEVEL%" == "0" goto init    echo.  echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.  echo.  echo Please set the JAVA_HOME variable in your environment to match the  echo location of your Java installation.    goto fail    :findJavaFromJavaHome  set JAVA_HOME=%JAVA_HOME:"=%  set JAVA_EXE=%JAVA_HOME%/bin/java.exe    if exist "%JAVA_EXE%" goto init    echo.  echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%  echo.  echo Please set the JAVA_HOME variable in your environment to match the  echo location of your Java installation.    goto fail    :init  @rem Get command-line arguments, handling Windows variants    if not "%OS%" == "Windows_NT" goto win0xME_args    :win0xME_args  @rem Slurp the command line arguments.  set CMD_LINE_ARGS=  set _SKIP=0    :win0xME_args_slurp  if "x%~0" == "x" goto execute    set CMD_LINE_ARGS=%*  