Please install java in your PATH or set JAVA_HOME while running logstash

I am facing the error while running logstash
" Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME.
"

have searched a lot
please someone guide me

Best Regards
Shrikant

I think the error message is quite clear. It does seem you do not have Java installed, so that is what you need to address.

Hello @Christian_Dahlqvist
Thankyou for the response

I have installed Java and its showing with the command echo $JAVA_HOME

Best Regards
Shrikant

Is that environment variable available for the user running Elasticsearch?

how to check that?
i am also having ELK version 6.2 installed and everything is working fine for 6.2

and I am facing the issue in ELK version 5.3

Hello,
Open your command prompt and write,
java -version,

if it displays java8 version, then you have set the path correctly.

hope this helps you.

1 Like

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