Quantcast
Channel: frdmn's notes
Viewing all articles
Browse latest Browse all 15

Java 7 on OS X Yosemite

$
0
0

If you want to install Java 7 on OS X 10.10 you probably already came across this annoying message:

There is an easy way to fix this while customizing the installer and disabling the OS version check. Here's how to do so:

  1. Download the latest Java 7 dmg from Oracle.
  2. Open and mount the downloaded image
  3. Open a new window in the Terminal.app
  4. Based on the downloaded version adjust the varibale below which will help us during the following customization:
    JAVABUILD="67"
  5. Unpack the installer:
    pkgutil --expand "/Volumes/JDK 7 Update ${JAVABUILD}/JDK 7 Update ${JAVABUILD}.pkg" "/tmp/JDK 7 Update ${JAVABUILD}.unpkg"
  6. Remove the OS version check in the Distribution file:
    sed -i '' 's/<installation-check script="pm_install_check();"\/>//g' "/tmp/JDK 7 Update ${JAVABUILD}.unpkg/Distribution"
  7. Rebuild the customized image:
    pkgutil --flatten "/tmp/JDK 7 Update ${JAVABUILD}.unpkg" "/tmp/JDK 7 Update ${JAVABUILD}.pkg"
  8. Open the image:
    open "/tmp/JDK 7 Update ${JAVABUILD}.pkg"

Voilà!


Viewing all articles
Browse latest Browse all 15

Trending Articles