Not able to install elasticsearch in Windows 7

Hi team,
Can you help me to resolve this error.
C:\Users\foxin\Downloads\elasticsearch-6.4.2\elasticsearch-6.4.2\bin>elasticsearch
could not find java; set JAVA_HOME or ensure java is in PATH

I have successfully set the path in environment variables as follows
image

Also

image

You need to point it to the JDK directory, not it's bin directory.

once you set your java path,
open command prompt, and type
java -version
if it is set properly, it will show the java with version number

Next Step,

  1. Open command prompt
  2. Navigate to the elasticsearch bin folder ex: D:\ELK\Elasticserach6.4\bin\
  3. Run the command ".\elasticsearch" or ".\elasticsearch.bat"
  4. Observe the output
  5. Open browser and type "localhost:9200"

Hi @balumurari1 ,

Thanks a lot. It worked.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.