Is it possible to update my iMac running OS X Snow Leopard to Java 7?
I'm just a user, not a developer, and I need Java 7 to access data from a website that I frequently use. I'm afraid to plunge forward and run into more problems.
migrated from stackoverflow.com Dec 27 '12 at 18:45
This question came from our site for professional and enthusiast programmers.
As others have stated, Oracle is only supporting Java 7 on Mac OS X 10.7 and above. The openjdk-osx-build project (http://code.google.com/p/openjdk-osx-build/) was creating OpenJDK 7 builds for OS X 10.6, but has recently shuttered the operation.
The build and package scripts were moved to the OBuildFactory project. This recent OBuildFactory post indicates there will be no further efforts to build OpenJDK 7 on OS X 10.6: https://github.com/hgomez/obuildfactory/issues/3
It looks like rolling your own OpenJDK 7 got a lot harder. If you need Java 7, upgrading to OS X 10.8 is probably the easiest route (upgrade from the Mac App Store costs $19.99) -- but your desktop will start looking and behaving more like a phone.
If you have / will install Xcode 3.2.6 or 4.2 (4.2 requires a paid account or a little illegality, and I know it's a massive download), download the java 7 installer, extract the PKG from the DMG file, and open it in PackageMaker. Remove the version requirement string and rebuild the PKG file. It will now let you install Java 7!
Source: I did this on my 2006 Core 2 Duo iMac running Snow Leopard.
edit: the one thing that does not appear to work on snow leopard is the AWT libraries. There is a customized version of openJDK 7 that supposedly fixes the problem, but Java requires a truly herculean effort for me to compile - it's not very nice about following the
The original place to get openJDK 7 for Snow Leopard was here:
You used to be able to get JDK DMG's, but which the author decided for some reason to remove them (possibly they were out of date).
His page now links here:
and this commit seems to fix the problems with AWT:
Apple only releases their own version as 1.6.
To get Java 7 you can download it from Oracle's homepage.