title: Can't install jdk on Fedora with yum nor with rpm
body: <p>Help! I can't figure out how to install a jdk!</p>
  
  <pre><code>[/usr/lib/jvm]$ su -c "yum install java-1.7.0-openjdk-devel"
  Loaded plugins: langpacks, presto, refresh-packagekit
  No package java-1.7.0-openjdk-devel available.
  Error: Nothing to do
  
  [/usr/lib/jvm]$ su -c "yum install java-1.7.0-openjdk"
  Loaded plugins: langpacks, presto, refresh-packagekit
  No package java-1.7.0-openjdk available.
  Error: Nothing to do
  
  [/usr/lib/jvm]$ su -c "yum install java-1.6.0-openjdk-devel"
  Loaded plugins: langpacks, presto, refresh-packagekit
  No package java-1.6.0-openjdk-devel available.
  Error: Nothing to do
  
  [/usr/lib/jvm]$ su -c "yum install java-1.6.0-openjdk"
  Loaded plugins: langpacks, presto, refresh-packagekit
  No package java-1.6.0-openjdk available.
  Error: Nothing to do
  </code></pre>
  
  <p>Here I've manually downloaded some rpm's, the last one from oracle's website:</p>
  
  <pre><code>[~]$ rpm -ivh java-1.7.0-openjdk-devel-1.7.0.19-2.3.9.3.fc20.x86_64.rpm 
  error: Failed dependencies:
      java-1.7.0-openjdk = 1:1.7.0.19-2.3.9.3.fc20 is needed by java-1.7.0-openjdk-devel-1:1.7.0.19-2.3.9.3.fc20.x86_64
  
  
  [~]$ sudo rpm -ivh java-1.7.0-openjdk-1.7.0.19-2.3.9.3.fc20.x86_64.rpm 
  Preparing...                          ################################# [100%]
      file /usr/lib/jvm-exports/jre-1.7.0-openjdk.x86_64 from install of java-1.7.0-openjdk-1:1.7.0.19-2.3.9.3.fc20.x86_64 conflicts with file from package java-1.7.0-openjdk-1:1.7.0.9-2.3.7.0.fc18.x86_64
      file /usr/lib/jvm/jre-1.7.0-openjdk.x86_64 from install of java-1.7.0-openjdk-1:1.7.0.19-2.3.9.3.fc20.x86_64 conflicts with file from package java-1.7.0-openjdk-1:1.7.0.9-2.3.7.0.fc18.x86_64
  
  
  [~]$ sudo rpm -ivh jdk-7u21-linux-x64.rpm 
  Preparing...                          ################################# [100%]
      file /etc/init.d/jexec from install of jdk-2000:1.7.0_21-fcs.x86_64 conflicts with file from package jdk-2000:1.6.0_38-fcs.x86_64
  </code></pre>
  
  <h2>Debug</h2>
  
  <p>Here's some debug information:</p>
  
  <pre><code>[/usr/lib/jvm]$ yum search jdk
  Loaded plugins: langpacks, presto, refresh-packagekit
  =========================================================== N/S Matched: jdk ============================================================
  java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
  jdk.x86_64 : Java(TM) Platform Standard Edition Development Kit
  ldapjdk.noarch : The Mozilla LDAP Java SDK
  Name and summary matches only, use "search all" for everything.
  </code></pre>
  
  <p>.</p>
  
  <pre><code>[/usr/lib/jvm]$ yum list java*
  Loaded plugins: langpacks, presto, refresh-packagekit
  Installed Packages
  java-1.5.0-gcj.x86_64   
  </code></pre>
  
  <p>.</p>
  
  <pre><code>[/usr/lib/jvm]$ cat /etc/fedora-release 
  Fedora release 18 (Spherical Cow)
  </code></pre>
  
  <h2>Requirements</h2>
  
  <p>I <em>must</em> have "<strong>jni.h</strong>", "<strong>libjava.so</strong>", "<strong>libhpi.so</strong>", "<strong>lipverify.so</strong>" and "<strong>libjvm.so</strong>" included.</p>
  
  <p>So far I've found out that these DO NOT have what I need:</p>
  
  <ul>
  <li>Undesired Versions (for sure):
  <ul>
  <li>jdk1.7.0_06 &lt;-- <em>I'm surprised about this one, but it doesn't have libjvm nor libhpi</em></li>
  <li>java-1.7.0                          </li>
  <li>java-openjdk    </li>
  <li>java-1.7.0-openjdk-1.7.0.9.x86_64</li>
  <li>java-1.5.0-gcj-4.4</li>
  <li>java-1.6.0-openjdk</li>
  <li>java-1.7.0-openjdk.x86_64</li>
  <li>jre-1.5.0-gcj</li>
  <li>jre-1.7.0-openjdk.x86_64</li>
  <li>jre-openjdk               </li>
  <li>jre-1.7.0</li>
  <li>jre-7u11-linux-x64.rpm java-1.5.0-gcj-1.5.0.0</li>
  <li>jre-1.5.0</li>
  <li>jre1.7.0_11</li>
  <li>jre-gcj</li>
  </ul></li>
  </ul>
  
  <p>And these do:</p>
  
  <ul>
  <li>Desired Versions (that I know of, there could be more):
  <ul>
  <li><strong>jdk1.6.0_34-x86</li>
  <li>jdk1.5.0_22-x86</li>
  <li>java-6-openjdk</strong></li>
  </ul></li>
  </ul>
  
  <p>Can someone help me install jdk1.6 or java-6-openjdk please?</p>