title: How to set up applications requiring legacy java on El Capitan (OS X 10.11)?
body: <p>I have a clean install of El Capitan. I have PHPStorm installed on my Macbook Air. When I try to run the application, I get an error that says PHP storm can't be opened because it requires legacy Java SE 6. I've attached an image of the error below.</p>
  
  <p><img src="https://i.stack.imgur.com/2JrCD.png" alt="enter image description here"></p>
  
  <p>I had the same problem when I installed Yosemite but I was able to install the legacy java fix (Java for OS X 2014-001) from Apple's website. When I try installing that same java fix I get the following Error:
  <code>Java for OS X can't be installed on this disk. A newer version of this package is already installed</code></p>
  
  <p><img src="https://i.stack.imgur.com/m8AmV.png" alt="enter image description here"></p>
  
  <p>Any thoughts and help will be greatly appreciated!
  Thanks</p>