I am trying to run elasticsearch.bat on my local windows machine after downloading the zip file on Windows. I get error:
could not find java; set JAVA_HOME or ensure java is in PATH
I already set JAVA_HOME and also put it in the PATH and I can type 'java' in my command line and see all the options. So why is elastic search not able to find it?
Possible solutions:
set your path to JDK package and not JRE package
Set your path up to JDK folder and not bin folder, example
C:\Program Files\Java\jdk1.8.0_181