title: Uninstalling Java 8 on Mac 10.10 and installing java 6
body: <p>I need to uninstall java 8 from my Mac 10.10, and install java 6.</p>
  
  <p>Following one post here, i ran the following commands:</p>
  
  <pre><code>sudo rm -rf /Library/Java/JavaVirtualMachines/jdk&lt;version&gt;.jdk
  sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
  sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
  </code></pre>
  
  <p>The jdk8 is removed, but when i'm trying to install java 6 i'm getting an error as
  "An updated version of java is already installed"</p>
  
  <p>Can anyone guide me through..</p>
  
  <p>Note:
  - After running the commands, i did one system restart but no help
  - I specifically need to install java 6.</p>