My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

OpenJDK 7 and 8 for OS/X Snow and Lion

Here you'll find up to date OpenJDK 7 and 8 for OS/X packages (ready to be installed) and also everything needed to build and package your own OpenJDK.

Packages built on SnowLeopard (10.6) and tested on SnowLeopard (10.6) and Lion (10.7).

Lion and Snow Leopard Packages

Due to recent changes in Lion 10.7.3 (freetype), we provide now Packages for Lion (10.7.3) and Packages for SnowLeopard (10.6.8). You'll find Snow packages in Downloads area with -snowleopard in package name.

Prerequisite

Mike Swingler from Apple Java Team mention in mailing-list :

"As a prerequisite to using OpenJDK, we'd ask that you install the Apple Java Developer Preview" "This preview will ensure that you have a /Library/Java/JavaVirtualMachines directory to land the 1.7.0.jdk into, as well as the new API that OpenJDK is now relying on."

Latest Java 1.6 for Snow and Lion should include these requirements :

Packages

Packages available :

Why so many packages ?

Just read JDK roadmap

Using an OpenJDK package in OSX

We use distintcs packages id, so you could have at the same time, 64bits BSD or Dual OS/X VMs on your system.

You could select VM using Java Preferences :

Or by setting JAVA_HOME from console :

MBP:~ henri$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0u-dev.jdk/Contents/Home
MBP:~ henri$ java -version
openjdk version "1.7.0-u4-b13"
OpenJDK Runtime Environment (build 1.7.0-u4-b13-20120308)
OpenJDK 64-Bit Server VM (build 23.0-b16, mixed mode)

MBP:~ henri$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home
MBP:~ henri$ java -version
openjdk version "1.7.0-u4-b227"
OpenJDK Runtime Environment (build 1.7.0-u4-b227-20120127)
OpenJDK 64-Bit Server VM (build 23.0-b12, mixed mode)

MBP:~ henri$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
MBP:~ henri$ java -version
openjdk version "1.7.0-b222"
OpenJDK Runtime Environment (build 1.7.0-b222-20111220)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)

Usefull links

Mac OS/X Port project Wiki

Mac OS/X Port project status

Mac OS/X Port JIRA

Powered by Google Project Hosting