My colleague Alexis recently shared a couple of links on Twitter to DMG files containing recent builds of OpenJDK for Mac OS X.
These builds are created by the community for the community – they are experimental and are probably not stable. Thanks Gildas and Henri for your work !
I downloaded the 64 bits version (32 bits version also available) and installed it in a couple of minutes. These builds install in Apple proposed location : /Library/Java/JavaVirtualMachines
First test is obviously :
marsu:~ sst$ /Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/bin/java -version openjdk version "1.7.0-internal" OpenJDK Runtime Environment (build 1.7.0-internal-henri_2010_11_25_16_22-b00) OpenJDK 64-Bit Server VM (build 20.0-b02, mixed mode)
Then I configured Netbeans to use that JDK to compile and run projects :
Netbeans 6.9 has build in modules to support some upcoming Java SE 7 syntax, such as the language simplifications proposed by project Coin.
BTW, should you want to create the builds yourself, everything is documented – you can even start a continuous build with Hudson. You can then download specific scripts to build OpenJDK on MacOSX and to create the installation packages (Will require Apple’s Developer Tools to be installed)
Enjoy !
#1 by Vincent Hardion on 28/11/2010 - 15:12
Thanks for the article.
But unfortunately the links to download the binaries are broken.
Any idea where I can find they ?
Regards,
#2 by sst on 28/11/2010 - 19:22
I updated the links in the post to http://code.google.com/p/openjdk-osx-build/downloads/list where up-to-date builds should be posted from time to time
#3 by john doe on 30/11/2010 - 21:25
Can I use this as my system default JVM? How can I replace the apple’s JVM in 10.6.5?
#4 by sst on 01/12/2010 - 07:52
Currently, this package is not registered. You’ll have to hack with symlinks to make it the default JVM. @hgomez is working on that stay tuned on Twitter and on his blog http://blog.hgomez.net/
Notice that these builds are experimental and do not include integration with Aqua and Quartz. GUIs are running under X11 until Apple will contribute it’s code to OpenJDK