title: Error thrown in update-alternatives
body: <p>I am trying to install jdk for 32-bit OS. Followed the below steps,</p>
  
  <ol>
  <li><p><code>wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" http://download.oracle.com/otn-pub/java/jdk/6u38-b05/jdk-6u38-linux-i586.bin</code></p></li>
  <li><p><code>chmod u+x jdk-6u34-linux-i586.bin</code></p></li>
  <li><p><code>./jdk-6u34-linux-i586.bin</code></p></li>
  <li><p><code>mkdir -p /usr/lib/jvm /usr/bin/java /usr/bin/javac /usr/bin/javaws</code></p></li>
  <li><p><code>mv jdk1.6.0_3.</code>/usr/lib/jvm/`</p></li>
  <li><p><code>update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_38/bin/java" 1</code></p></li>
  <li><p><code>update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_38/bin/javac" 1</code></p></li>
  <li><p><code>update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jre1.6.0_38/bin/javaws" 1</code></p></li>
  </ol>
  
  <p>but while running cmd 6 i am getting below error. Any help would be appreciated.</p>
  
  <pre><code>update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/jdk1.6.0_38/bin/java because link group java is broken.
  update-alternatives: warning: not replacing /usr/bin/java with a link.
  update-alternatives: warning: forcing reinstallation of alternative /usr/lib/jvm/jdk1.6.0_38/bin/javac because link group javac is broken.
  update-alternatives: warning: not replacing /usr/bin/javac with a link.
  update-alternatives: error: alternative path /usr/lib/jvm/jre1.6.0_38/bin/javaws doesn't exist.
  </code></pre>