Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up applications requiring legacy java on El Capitan (OS X 10.11)?

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.

enter image description here

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: Java for OS X can't be installed on this disk. A newer version of this package is already installed

enter image description here

Any thoughts and help will be greatly appreciated! Thanks

like image 834
flopperJ Avatar asked Jun 11 '15 16:06

flopperJ


People also ask

How do I install legacy Java SE 6 runtime on Mac?

1.1 Install Java SE 6 manuallyOpen the Apple support page to download Java SE 6 installer. Click the Download button to download the installer. You can also directly download the file from here. Once the download is complete, click on the download icon on the dock to open the download folder.

How do I enable the latest Java version on my Mac?

Update Java in the Java Control Panel Launch the Java Control Panel by clicking the Java icon under System Preferences. Go to the Update tab in Java Control Panel and click on Update Now button that brings up Installer window. Click on Install Update. Click on Install and Relaunch.


2 Answers

Download Java 6 for El Capitan:

Java for OS X 2015-001 Beta

https://support.apple.com/kb/DL1824

like image 115
jase Avatar answered Sep 20 '22 00:09

jase


I've used Homebrew to install JDK 1.6.0_65:

brew tap homebrew/cask-versions
brew cask install java6
like image 30
nwinkler Avatar answered Sep 22 '22 00:09

nwinkler