OpenJDK 7 for Mac OS X Apple
After almost two months ago support for the OpenJDK
announced project was
Mac OS X port adopted on Monday of this week as the official OpenJDK project - and only a day later
Apple has introduced the first open code in the project. Essentially corresponds to this first release of the BSD port
. Apple currently has only changed the build process to create a universal binary with one. Jdk bundle that fits the new Java directory structure of Mac OS X (and will accordingly automatically recognized after installation).
Everyone can now for Mac OS X port and contribute the latest OpenJDK build from source. Prerequisite for this include Mac OS X version 10.6.5 and Xcode version 3.2.5. More is described in the Wiki
; There you can also view the current project status
.
Those who like the JDK 7 simple, without having to build it yourself, to a finished DMG download from Google Code
. The
Installer for Mac OS X contains both a-Branch 32 - and 64-bit JVM. After the fast and totally unproblematic installation you can test the JDK 7 with the usual commands in Terminal:
much $ / usr / libexec / java_home - version 1.7
/ Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents / Home
much $ export JAVA_HOME = `/ usr / libexec / java_home` v 1.7
much $ $ JAVA_HOME / bin / java-version
openjdk version "1.7.0-internal" OpenJDK Runtime Environment
(build 1.7.0-internal-b00) OpenJDK 64-Bit
Server VM (build 20.0-b03, mixed mode)
much $ / usr / libexec / java_home -v 1.7 - java-version exec
openjdk version "1.7.0-internal" OpenJDK Runtime Environment
(build 1.7.0-internal-b00) OpenJDK 64-Bit
Server VM (build 20.0-b03, mixed mode)
For graphical front-ends is still not Cocoa, but only supports X11. To try out the new language features (strings in
switch etc.) but that's enough from perfect.
As mentioned above, the OpenJDK 7 automatically by the Java settings in Mac OS X recognized. Because of the incompleteness of Cocoa and Mac OS X integration should be the new version but still not set as default, that is better left at the end of the list.