service.bat file will explicitly use the Windows find command.
If `find` maps to something other than the Windows find command, the installation will succeed, but use the incorrect Java version.
This commit is contained in:
parent
6c27f1242a
commit
4d0509a195
|
@ -13,7 +13,7 @@ if not exist "%JAVA_HOME%\bin\java.exe" (
|
|||
echo JAVA_HOME points to an invalid Java installation (no java.exe found in "%JAVA_HOME%"^). Exiting...
|
||||
goto:eof
|
||||
)
|
||||
"%JAVA_HOME%\bin\java" -version 2>&1 | find "64-Bit" >nul:
|
||||
"%JAVA_HOME%\bin\java" -version 2>&1 | "%windir%\System32\find" "64-Bit" >nul:
|
||||
|
||||
if errorlevel 1 goto x86
|
||||
set EXECUTABLE=%ES_HOME%\bin\elasticsearch-service-x64.exe
|
||||
|
|
Loading…
Reference in New Issue