Logstash -Could not find any executable java binary Logstash -Could not find any executable java binary elasticsearch elasticsearch

Logstash -Could not find any executable java binary


I had to

export JAVACMD=`which java`

to make this work.


I know, it's an old thread, but I was also having the same problem and was doing a very silly thing.

I had updated my $JAVA_HOME var in /etc/environment but was not reloading the file because of which it was not taking effect, and running source /etc/environment solved my problem.