title: ELK Prompting to upgrade java version even after upgraded to latest on ubuntu
body: <p>I'm using ELasticsearch on ubuntu 18.04 (AWS). While i try to run &quot;./elasticsearch-setup-passwords&quot; script it is showing following error.</p>
  <blockquote>
  <p>future versions of Elasticsearch will require Java 11; your Java
  version from [/usr/lib/jvm/java-8-openjdk-amd64/jre] does not meet
  this requirement</p>
  </blockquote>
  <p>But while I check for Jaa version it shows Java 11.</p>
  <pre><code>root@ip-162-41-63-148:/usr/share/elasticsearch/bin# java -version
  openjdk version &quot;11.0.7&quot; 2020-04-14
  OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
  OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
  </code></pre>
  <p>I upgrade Java from 8 to 11.</p>
  <p>Why still this problem occur? And how to fix it?</p>