[general] Update startup script

pull/1/head
Dom Eori 2023-02-28 19:33:51 +09:00
parent e625252927
commit c70937297b
1 changed files with 2 additions and 2 deletions

View File

@ -22,9 +22,9 @@ goto error
:init
SET JAVA_EXE="%JAVA_HOME%\bin\java.exe"
for /f tokens^=2-5^ delims^=.-_^" %%j in ('%JAVA_EXE% -fullversion 2^>^&1') do set "JAVA_VER=%%j%%k"
if not %JAVA_VER% LSS 110 goto run
if not %JAVA_VER% LSS 170 goto run
echo.
echo Error: Java version is lower than 11, please update your Java version. >&2
echo Error: Java version is lower than 17, please update your Java version. >&2
echo.
goto error