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

(Shrikant) #1

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

(Christian Dahlqvist) #2

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.

(Shrikant) #3

Hello @Christian_Dahlqvist
Thankyou for the response

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

Best Regards

(Christian Dahlqvist) #4

Is that environment variable available for the user running Elasticsearch?

(Shrikant) #5

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


Open your command prompt and write,
java -version,

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

hope this helps you.

(system) closed #7

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