Elasticsearch can't find java!

I install elasticsearch 6.0.1(latest version)
set up the path
image
image

thank you in advance!

Pretty sure JAVA_HOME should not include the bin directory, just the main one.

I changed it .
but the same problem.

oh, I found that when I double click the elasticsearch.bat it can run correctly.
but if I run it by cmd, it would not find java.

sorry I found it should run as Administrator, or it can't find java

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