Cannot locate java installation error for logstash
In my case the problem was that I set the JAVA_HOME
variable with a space in the end:
"set JAVA_HOME=c:\Programs\Java "
instead of
"set JAVA_HOME=c:\Programs\Java"
And logstash couldn't figure that out :) Removing the space fixed the issue.
Set the JAVA_HOME
and PATH
environmental variables like this:
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_25
PATH = C:\Program Files\Java\jdk1.7.0_25\bin