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

Warning

There is today 5 main branches to track :

  1. OpenJDK 7u
  2. OpenJDK 8
  3. OpenJDK 8 + lambda
  4. OpenJDK 8 + jigsaw
  5. OpenJDK 8 + mlvm

Packages should be produced in 2 modes :

  1. production
  2. debug (fastdebug mode)

Packages should be built on 3 OSX versions :

  1. SnowLeopard
  2. Lion
  3. Mountain Lion

Until I could find a dedicated build infrastructure or community based solution to handle workload, the pace of released packages will be drastically slowed.

Contributors/Sponsors are more than welcomed.

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 may now provide 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."

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.0u4.jdk/Contents/Home
MBP:~ henri$ java -version
openjdk version "1.7.0-u4-b15"
OpenJDK Runtime Environment (build 1.7.0-u4-b15-20120313)
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.8.0.jdk/Contents/Home
MBP:~ henri$ java -version
openjdk version "1.8.0-jdk8-b29"
OpenJDK Runtime Environment (build 1.8.0-jdk8-b29-20120314)
OpenJDK 64-Bit Server VM (build 24.0-b02, 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