Skip to main content

Farewell to Java 6?

Posted by fabriziogiudici on May 7, 2012 at 1:12 PM PDT

With the first release ever of a Java VM by Oracle for Mac OS X, a long, long time problem has probably been solved. Now we have a single producer of VM, Oracle, that can produce bits for all the major operating systems (Windows, Linux, Mac OS X) and release in the same moment. In the past Apple was entirely responsible for bits on Mac OS X with a chronical delay with respect to the other operating systems.

This is also the first official, non early-access release of a JDK 7 for Mac OS X and makes it possible to get aligned to Java 7 for our projects. Java 6 is going to end its life in a few months and my intention is to have all my projects relying on Java 7 within this Summer. Some of them has been already put under CI with parallel Java 6 and Java 7 builds since a few time, as well as running in production with JDK 7. Now that I can compile them in Java 7 also on my Mac OS X laptop (NetBeans 7.1.2 also runs fine with JDK 7 on Mac OS X), I can start dropping support for Java 6, setting -source and -target 1.7. Which also means that I can start using the new Java 7 features.

The process is not necessarily without problems, and I'll blog about one that I faced with (and solved) yesterday in my next post.

Related Topics >>

Comments

JDK7 on mac is for Lion and forward. Industry is rather slow ...

JDK7 on mac is for Lion and forward. Industry is rather slow in upgrading its OS, so if the support is not extended to older OS versions, then it will take some years before we have a Java7+ situation.

OpenJDK 7u4 has been released as well. I'm testing it under ...

OpenJDK 7u4 has been released as well. I'm testing it under Lion, but it supports also old versions of Mac OS X and there's a universal build (32/64 bit). It's a bit more buggy than Oracle's JDK 7u4 (e.g. the NetBeans IDE suffers some problems with keyboard bindings), but I expect that the gap is filled soon.