Java 1.6 Finally Available for Mac OS X

Welcome to last year Apple. I've never seen a good explanation of why Apple has taken so long to release Java 1.6 for Mac OS X. I remember attending WWDC in 2000 when Steve Jobs announced that Java would be a first class citizen on Mac OS X. Things looked promising, but times have changed. I could understand waiting for the first patch, but this is the 5th patch for Java 1.6. We have been using Java 1.6 on hundreds of production systems in my group for over a year. I can't tell you how annoying it has been to run a VM on my Mac just so I can develop with Java 1.6. The delay for the release has been painful, I'm relived that my life will be improved now

Java 1.6 is not installed as the default, its just available:

After doing Software Update:

cmar$ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)

when you type java at the command line, it invokes /usr/bin/java which is really a link to the Java Framework

Java Link

cmar$ ls -la /usr/bin/java
lrwxr-xr-x 1 root wheel 74 Apr 30 08:41 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java

Switching you default

If you want to switch your default then you need to either modify the link /usr/java/bin
sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java /usr/bin/java
You might have to do "rm /usr/java/bin" first to remove the link before creating a new one.

Or you can just create an alias in your ~/.bash_login
alias java=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java

Comments:

Its only for 64bit-Intel Leopard Machines.

So not for me with a 32bit-Intel Leopard Machine :-(

Fortunatly there is Soylatte which is also available for PPC, Tiger and 32bit-Intels.
I doubt it there will ever be a 32bit-Intel or PPC-Version.

I am so disappointed!

Regards,
Dirk

Posted by Dirk on April 30, 2008 at 02:45 AM EDT #

Hi, could you please detail a bit more what needs to be done to "download" or use 1.6 on a Mac (System Version: Mac OS X 10.4.11 (8S2167)). I recently switched to Mac and I'm not on top of your solution.

I also don't seem to find the version 1.6 for Mac on Sun website...

Thank you.

Marc$ ls -la /usr/bin/java
lrwxr-xr-x 1 root wheel 77 Jan 4 15:13 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Commands/java

Posted by Marc on May 06, 2008 at 09:56 AM EDT #

Hi Marc!

If you cannot upgrade to a 64bit-Intel-Leopard (10.5) you can try the following:

http://landonf.bikemonkey.org/static/soylatte/

Regards,
Dirk

Posted by Dirk on May 06, 2008 at 10:44 AM EDT #

Post a Comment:
Comments are closed for this entry.
About

Currently blogging about Apple, Rails and Java

Search

Archives
« September 2015
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today