title: Jenkins doesn't recognize Java 1.6
body: <p>I'm trying to configure Jenkins with Java 1.6, 1.7 and 1.8.</p>
  
  <pre><code>$ update-alternatives --config java
  Há 3 programas que oferecem "java".
  Seleção    Comando
  -----------------------------------------------
  *+ 1           /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.91-1.b14.el7_2.x86_64/jre/bin/java
    2           /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.101-2.6.6.1.0.1.el7_2.x86_64/jre/bin/java
    3           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
  </code></pre>
  
  <p>As you can see the Java installation are ok. But I can configure only Java 1.8 and 1.7 on jenkins Global Tool Configuration.</p>
  
  <p><a href="https://i.stack.imgur.com/mhTsl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mhTsl.png" alt="jenkins can not find the installation of java 1.6"></a></p>
  
  <blockquote>
    <p>/usr/lib/jvm/jre-1.6.0-openjdk.x86_64 not look like a jdk directory</p>
  </blockquote>