Skip to content

Commit

Permalink
Clearer error message - installing windows service (#33804)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nogginbox authored and danielmitterdorfer committed Mar 4, 2019
1 parent cf34d50 commit ceb7051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribution/src/bin/elasticsearch-service.bat
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ if exist "%JAVA_HOME%\bin\server\jvm.dll" (
set JVM_DLL=\bin\server\jvm.dll
goto foundJVM
) else (
echo JAVA_HOME points to an invalid Java installation (no jvm.dll found in "%JAVA_HOME%"^). Exiting...
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...
goto:eof
)

Expand Down

0 comments on commit ceb7051

Please sign in to comment.