Friday, October 10, 2014

How to run WebStorm (IntelliJ IDE) on OS X Yosemite (without legacy JDK)

1. Download Java 7 SDK

2. Open package (it will not install because of bug in checking function)

3. Run in terminal:
pkgutil --expand "/Volumes/JDK 7 Update 67/JDK 7 Update 67.pkg" "/tmp/JDK 7 Update 67.unpkg"

cd /tmp/JDK\ 7\ Update\ 67.unpkg/

4. Open file named "Distribution"

5. Find function pm_install_check() { (it's line 70 at this moment)

6. Change it to always return true:

function pm_install_check() {
  return true;

7. Run in terminal:
pkgutil --flatten "/tmp/JDK 7 Update 67.unpkg" "/tmp/JDK 7 Update 67.pkg"

open "/tmp/JDK 7 Update 67.pkg"

8. Now let's patch WebStorm settings - it's officially recommended way, so copypaste:

To force running under JDK 1.7 edit /Applications/<Product>.app/Contents/Info.plist file, change JVMVersion from 1.6* to 1.7* :
<key>JVMVersion</key>
<string>1.7*</string>

No comments:

Post a Comment