title: Logstash -Could not find any executable java binary
body: <p>I have ELK installed on a VM in my laptop.Elasticsearch is up and running.</p>
  
  <p><code>./bin/logstash -f logstash-filter.conf gives me the below error
  Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME.</code></p>
  
  <p>I tried setting up <code>JAVA_HOME</code> and  <code>$ PATH</code>, still the issue is persistent. Am I missing something?</p>
  
  <pre><code> which java
  /usr/bin/java
  
  
  java -version
  java version "1.7.0_79"
  OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
  OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
  
  echo $JAVA_HOME
  /usr/local/java/jdk1.8.0_45
  
  echo $PATH
  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/divija/bin:/usr/local/java/jdk1.8.0_45/bin
  </code></pre>
  
  <p>logstash-filter.conf</p>
  
  <pre><code>input { stdin { } }
  
  filter {
    grok {
      match =&gt; { "message" =&gt; "%{COMBINEDAPACHELOG}" }
    }
    date {
      match =&gt; [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
    }
  }
  
  output {
    elasticsearch { host =&gt; localhost 
      index=&gt;"myindex"
  }
    stdout { codec =&gt; rubydebug }`enter code here`
  }
  </code></pre>