Skip to content

Commit ceb7051

Browse files
nogginboxdanielmitterdorfer
authored andcommitted
Clearer error message - installing windows service (#33804)
The error message reports it can not find a file in a directory it was not looking for it in. I've updated the message so it makes it clearer what JAVA_HOME is set to and which directories it tried to find jvm.dll in
1 parent cf34d50 commit ceb7051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/src/bin/elasticsearch-service.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ if exist "%JAVA_HOME%\bin\server\jvm.dll" (
9898
set JVM_DLL=\bin\server\jvm.dll
9999
goto foundJVM
100100
) else (
101-
echo JAVA_HOME points to an invalid Java installation (no jvm.dll found in "%JAVA_HOME%"^). Exiting...
101+
echo JAVA_HOME ("%JAVA_HOME%"^) points to an invalid Java installation (no jvm.dll found in "%JAVA_HOME%\jre\bin\server" or "%JAVA_HOME%\bin\server"^). Exiting...
102102
goto:eof
103103
)
104104

0 commit comments

Comments
 (0)