Java 8 with Adobe CS5 and PhpStorm Yosemite

JavaJDKJREYosemite

Note: You may not need the JDK but it is a more complete installation as per Oracle’s FAQ.

Avoid Java 6, it’s old and not updated.

Install Java 8 JDK. The latest version Java 8 Update 40.

First install JAVA 8 JDK.

Source: http://oliverdowling.com.au/2014/03/28/java-se-8-on-mac-os-x/

To get PHP Storm working you can use this trick.

Open terminal and run these two commands:

sudo rm /usr/bin/java

sudo ln -s “/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java” /usr/bin/java

 

To get Adobe CS5 Suite products workings again you can create two empty folders as indicated by

Open terminal and run these two commands:

sudo mkdir -p /System/Library/Java/JavaVirtualMachines/1.6.0.jdk
sudo mkdir -p /System/Library/Java/Support/Deploy.bundle

After running these commands PHP Storm 7, PHPStorm 8, PHPStorm 9 will work and won’t ask to install Apple JRE 6.

 

UPDATE:

For system wide usage JAVA_HOME should be set in your .bash_profile

export JAVA_HOME=”/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home”

You would then add JAVA_HOME to your path like so:

export PATH=”$JAVA_HOME:$PATH”

 

 

References:

 

Explanation:

What this does is that it maps your Java 6 folder to point to the Java 8 folder.

This way you do not need to Install Apples Java 6 JRE, and you can have the latest updates delivered via Oracle instead of App Store.

 

More Information:

Is it safe to install previous or older versions of Java?

Oracle highly discourages users from using older versions of Java. Installing old and supported versions of Java on your system presents a serious security risk. Upgrading to the latest version of Java ensures that Java applications will run with the most up-to-date security and performance improvements on your system. You can confirm that you have the latest version on the verification page. If installing an older version of Java is absolutely required, you must first uninstall the current version. See the instructions on the Mac uninstall Java FAQ.

After I updated to Mac OS X 10.10 (Yosemite), why am I told to install Java after I already installed the latest Java?

After updating to Mac 10.10 and installing the latest Oracle Java version, some users report being prompted to install Java again. This is most commonly because an application is using Java 6 provided by Apple, which also must be updated. For more information, see http://support.apple.com/kb/DL1572.

When I try to use java from the command line, why doesn’t it work? I have Oracle’s version of the JRE installed.

Installing a JRE from Oracle does not update java -version symlinks or add java to your path. For this functionality, you must install the full JDK. See Mac command line info.

 

 

Source: https://www.java.com/en/download/faq/java_mac.xml

Leave a Reply