Installing JDK 1.8.0_05 on Mac OS X Yosemite 10.10

So here I was, installing all the required things on my brand new laptop with Mac OSX Yosemite. The installation of JDK 1.8.0_25 went smoothly. Then I got to know that I need JDK 1.8.0_05 installed also.

I got the installer and tried installing and got this error.

“Java from Oracle requires Mac OS C 10.7.3 or later”

JDK 1.8.0_05 installation error

 

Seems like Sun usesĀ string comparison instead of a number comparison to validateĀ if the OS X version is greater than 10.1 and because of this my JDK installation was failing.

This is a hack which I had to do, inspired by this link:

Change OS X version from 10.10 to 10.9

Change to

Install JDK 1.8.0_05.

Reverse the steps to change the OS X version back from 10.9 to 10.10 and change back the permissions of the file to what it was before.

Hope this helps the next soul who might be stuck with JDK installation issues.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">