title: How to configure JDK environment path not JRE?
body: <p>I have install JDK 8 and my environment path is</p>
  
  <pre><code>PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
  JAVA_HOME="/usr/lib/jvm/java-8-openjdk"
  PATH=$PATH:/usr/lib/jvm/java-8-openjdk/bin
  </code></pre>
  
  <p>Here is my Java version</p>
  
  <pre><code>openjdk version "1.8.0_171"
  OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.18.04.1-b11)
  OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)
  </code></pre>
  
  <p>I am getting problem while installing Maven on Ubuntu</p>
  
  <pre><code>The JAVA_HOME environment variable is not defined correctly
  This environment variable is needed to run this program
  NB: JAVA_HOME should point to a JDK not a JRE
  </code></pre>