8th
Installing Java 1.5 on Snow Leopard
Important Note/Update: Installing “Java Update for OS X 10.6 Update 1” through Software Update will put your system back to square one. But you should update, since there are vulnerabilities that have been fixed in the new version. One workaround: move /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 to a safe place before updating, then move it back later. Or as one commenter suggests, put it in a different place and link to it, then just restore the links after updating.
Original Howto:
A few other pages on the web give instructions for installing the Java 1.5 support that is (inexplicably) missing in OS X 10.6.0. Unfortunately they rely on an untrusted gzip file posted on a server at washington.edu that is getting hammered.
Here’s how you get it from Apple:
Download the official Java package from Apple, “Java for Mac OS X 10.5 Update 4” dated June 15, 2009.
Then use the excellent shareware utility Pacifist to open the downloaded JavaForMacOSX10.5Update4.pkg file.
How to install
1) First use Finder to go to System > Library > Frameworks > JavaVM.framework > Versions and delete the two aliases (symlinks) “1.5” and “1.5.0”. Don’t skip this step, because otherwise the extraction will follow the symlinks and overwrite the contents of the 1.6.0 folder, oops.
2) In Pacifist, drill down into Contents > System > Library > Frameworks > JavaVM.framework > Versions.
3) In Pacifist, select 1.5 and 1.5.0, right-click, and chose Install to Default Location
Now you can launch Zend Studio 5.5 or whatever else you needed Java 1.5 support for. Enjoy!
(And many thanks to Davey Shafik for pointing me in the right direction with his Fixing ZDE 5.5 in Snow Leopard post.)