title: Error: Could not find or load main class org.elasticsearch.tools.JavaVersionChecker
body: <p>I have installed elasticsearch in AWS RHEL server. While running elasticsearch It is throwing below exeception. I tried all the solutions but not helpful. Could any one please give me a solution for this.</p>
  
  <pre><code>$ /usr/share/elasticsearch/bin/elasticsearch
  </code></pre>
  
  <blockquote>
    <p>Error: Could not find or load main class
    org.elasticsearch.tools.JavaVersionChecker
        Elasticsearch requires at least Java 8 but your Java version from</p>
    
    <p>/usr/java/jdk1.8.0_144/bin/java does not meet this requirement</p>
  </blockquote>
  
  <pre><code>$ java -version
  java version "1.8.0_144"
  Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
  Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
  `
  $ echo $JAVA_HOME
  /usr/java/jdk1.8.0_144
  </code></pre>