MacOS – Install Older Versions of Java on OSX 10.8.1

javamacos

I have a MacBook Pro Retina, running 10.8.1 and Java 1.6.0_35

I need to install some older versions of Java in order to track some bugs that my customers are seeing on older versions of Java.

I tried finding installers for older versions of Java from the Apple Developer Network, but none of them will install on Mountain Lion.

Where can I find installers for older versions of Java? Specifically, 1.6.0_07 and 1.5.0_xx that will run on OSX Mountain Lion?

Best Answer

You simply cannot get arbitrary Java versions for the Mac. Apple provides their own Java binaries and does not provide every single Java release. Also, those old versions have known security problems with active exploits in the wild, so it's dangerous to use them on a desktop system.

My best recommendation would be to create a Linux VM using VMware Fusion and install the old versions either from the Linux package installer or using packages downloaded from Oracle.