Browse Source

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
Richard Garside 6 years ago
parent
commit
ceb70519e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      distribution/src/bin/elasticsearch-service.bat

+ 1 - 1
distribution/src/bin/elasticsearch-service.bat

@@ -98,7 +98,7 @@ if exist "%JAVA_HOME%\bin\server\jvm.dll" (
 	set JVM_DLL=\bin\server\jvm.dll
 	set JVM_DLL=\bin\server\jvm.dll
 	goto foundJVM
 	goto foundJVM
 ) else (
 ) 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
   	goto:eof
 )
 )