- Feb
- 26
- 2008
Installing the JDK 1.6 on Mac OS X
By: Robert Dempsey | Tags:In my last post, Create and Deploy a JRuby app to the GlassFish gem in 10 minutes or less on Mac OS X, I mentioned using the JDK 1.6 (a.k.a. SoyLatte) to get the performance benefits from JRuby 1.1 RC2. Installing it is a snap, no compiling necessary. Here is what to do:
- Download SoyLatte 1.0.2 for Mac OS X 10.4 and 10.5. For authentication use username: jrl, password: I am a Licensee in good standing
- Unzip the package and put the entire directory where you want it
- Optional: rename the folder to soylatte16-1.0.2
- Add the soylatte16-1.0.2/bin path to your $PATH variable to use soylatte rather than the JDK 1.5 that comes installed
- Fire up a terminal session and type “java -version
If everything worked out, you should see something similar to:
java version "1.6.0_03-p3" Java(TM) SE Runtime Environment (build 1.6.0_03-p3-landonf_03_feb_2008_02_12-b00) Java HotSpot(TM) Server VM (build 1.6.0_03-p3-landonf_03_feb_2008_02_12-b00, mixed mode)
Enjoy the performance!
Connect with me on LinkedIn, Twitter, or recommend me on Working With Rails.
Share this post
Other posts you may enjoy
You can leave a response, or trackback from your own site.

14 Responses to “Installing the JDK 1.6 on Mac OS X”
On February 27th, 2008 at 3:14 pm Web 2.0 Announcer said:
Installing the JDK 1.6 on Mac OS X…
[...]In my last post, Create and Deploy a JRuby app to the GlassFish gem in 10 minutes or less on Mac OS X, I mentioned using the JDK 1.6 (a.k.a. SoyLatte) to get the performance benefits from JRuby 1.1 RC2. Installing it is a snap, no compiling necess…
On February 28th, 2008 at 10:15 am roScripts - Webmaster resources and websites said:
Installing the JDK 1.6 on Mac OS X…
Need help with your ruby programming project Atlantic Dominion Solutions s developers can ensure you maximize your web programming technology with Ruby…
On March 6th, 2008 at 5:49 pm Keith said:
Heya,
Thanks for the tip. I didn’t have any luck getting it working on Mac OS X 10.4 , however. After unpacking and adding the bin directory to $PATH, here is what I got:
$ echo $PATH
/Library/Frameworks/Python.framework/Versions/Current/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/sw/bin:/Users/me/flex2/bin:/Users/me/soylatte16-1.0.2/bin/
$ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
Java HotSpot(TM) Client VM (build 1.5.0_13-121, mixed mode, sharing)
$ ~/soylatte16-1.0.2/bin/java -version
-bash: /Users/me/soylatte16-1.0.2/bin/java: cannot execute binary file
$
Any suggestions?
Thanks!
On March 6th, 2008 at 6:31 pm Robert Dempsey said:
Keith,
I know that JDK 1.6 (soylatte) will work with 10.5 but not sure with 10.4. I will have to find someone with 10.4 and try it out.
On March 7th, 2008 at 1:57 pm ed eustace said:
Hi,
I’ve 10.4.11 here and i ran:
$ /Applications/Java/soylatte16-1.0.2/bin/java -version
java version “1.6.0_03-p3″
Java(TM) SE Runtime Environment (build 1.6.0_03-p3-landonf_03_feb_2008_02_12-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p3-landonf_03_feb_2008_02_12-b00, mixed mode)
so its working here.
Best,
Ed
On March 7th, 2008 at 2:08 pm Robert Dempsey said:
Thanks for the help Ed.
On March 8th, 2008 at 2:42 pm Zach said:
Ed - I get exactly the same error as Keith on Mac OS X 10.4.11: cannot execute binary file. Could you please provide all of the commands you used to extract the .tar.bz2 file after you downloaded it?
On March 10th, 2008 at 9:46 am Zach said:
Can anyone else confirm that SoyLatte works on Mac OS X 10.4.11? If so what did you do to get it to work?
On March 14th, 2008 at 10:19 am tom said:
same problem as keith!
tried to switch java version manually in /System/Library/Frameworks/JavaVM.framework/Versions by linking the CurrentJDK to the soylatte directory but no success either …
any further suggestions or a little howto - google didn’t get me an appropriate hit …
tia,
tom
On March 14th, 2008 at 12:01 pm Paul Tremblett said:
Looks like it’s for Intel-based Macs only. PPCs give the message ‘cannot execute binary file’.
On May 1st, 2008 at 4:04 am Emilio said:
For those having probles with $PATH:
make sure that soylatte path stays at the FRONT of other components in the PATH description:
macbook:~ emilio$ echo $PATH
/Users/emilio/Projects/soylatte16-i386-1.0.2/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/emilio/Projects/soylatte16-i386-1.0.2/bin
Otherwise the java version at /usr/bin will be taken first.
On May 6th, 2008 at 4:44 pm Gormo said:
Hi i’m a relative newbie when it comes to this $PATH stuff, how do i do it?
On May 6th, 2008 at 4:52 pm Robert Dempsey said:
Gormo,
There are a few ways to set your $PATH variable. For Mac and *nix, you can do something like “>mate ~/.bash_profile”. Mate is the command for TextMate. You can use the editor of your choice though.
Here’s a link for Windows: http://www.computerhope.com/issues/ch000549.htm
On June 23rd, 2008 at 11:32 am iPier said:
Update JAVA 1.6 on Leopard Mac OS X 1.5
Download Java Update From http://www.apple.com/support/downloads/javaformacosx105update1.html
Install, when finish go to > Applications > Utils > Java > Admin Java, DRAG the 1.6 Version at the top in the list (1.6, 1.5 64 Bits, 1.5 .. etc)
Save and now it’s done, Use java -version to see the results in my case
java version “1.6.0_05″
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)