Installing the JDK 1.6 on Mac OS X
Feb 26th, 2008 by Robert Dempsey - Tags: Java, Java & JRuby
UPDATE 6/16/09: I ran Software Update on my Mac last night and it appears that Apple has released an update to Java. I’m now rocking 1.6 natively. Update today.
UPDATE: due to folks running into trouble with this post I’ve created a much more detailed video for installing the JDK 1.6 on the Mac.
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!
Keep up with everything going on with Atlantic Dominion Solutions by subscribing to our monthly newsletter.
You can leave a response, or trackback from your own site.
@eth: i did everything u said and was extremely helpful, i typed in everything on the terminal, but now what? i tried clikcing out and nothing happened, do i automatically have it?
@eth: i went to my java prefrences and it only said i had J2se 1.4.2 and j2se 5.0, there is no 6
O i see now, it does not say what im supposed to say in the terminal it says
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)
Macintosh:~ josephpaulic$
So i guess my question is how do i make the 1.6 be used instead of 1.5
@eth: slowly but surely i begin to catch on, i first tried typing /Users/josephpaulic/desktop/soylatte16-1.0.2/bin
Then i pressed space and typed echo $path and hit space nothing happened, so i hit delete and tried return but then it tells me there is no such directory, when u mean type this next do u mean hit return or space or what? But anything combo i try is impossible, i ve been doing this for hours :/
For those finding it difficult, try this…
http://vegdave.wordpress.com/2007/10/13/java-se-6-mac-os-x-binary/
It worked well for me. Make sure you read the comment about installing over newer versions!
I can follow the first couple of instructions, but for those of us who don’t speak code, what does the following mean?
Add the soylatte16-1.0.2/bin path to your $PATH variable to use soylatte rather than the JDK 1.5 that comes installed
Hi Andrew, the previous comments on the post explain everything for you. Let me know if they don’t.
i have version 1.6 come up in my Terminal now – after a heck of a lot of effort – I also found out how to install the normal 1.6 Java version (http://images.spelpunt.nl/javase6release1dp6.dmg) from the website like this:
—————————————
Open up a terminal, and go to: /System/Library/Frameworks/JavaVM.framework/Versions/A
Now move the Resources folder away for a minute:
sudo mv Resources Resources.SAVE
Start the installer BUT DON’T INSTALL YET. All we are trying to do is get past the stupid roadblock. Once you see that installation is going to be permitted. Move the Resources folder back to its original position:
sudo mv Resources.SAVE Resources
————————————————-
still no joy for me – my GRATEPIC still says i have 1.5 when it tries to install although obviously i know have 1.6 thanks to all these posts …
I am extremely new to Mac (matter of face, less than 24 hours now), but I was able to get 1.6 to show up as the version. At first, this was not the case, so I changed my path as such:
vi /Users//.bash_profile
//Enter this line to the profile
export PATH=//soylatte16-1.0.2/bin:$PATH
Save off the file, and open a new terminal. You should see the following:
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)
My first mistake was putting the path to soylatte at the end of that statement. Once I moved it before the original path, it seemed to work just fine. Good luck.
What Joe wrote worked well for me, too, even for my PPC with 10.4.11
result: java version “1.6.0-dp”
Thanks!
Hi,
I used the two command lines in the shell as described above, and with java -version it shows 1.6, however, when I exit the terminal, start it again and check the version, it’s back to 1.5. What did I do wrong?
Any help is appreciated!
Thanks!
I doubt I’ll get a reply, but here goes. I’d like to install Java 1.6 on my Mac with 10.4.11 o.s. I don’t know what a “Terminal session” is and what I’m hoping for is laymans language that I could follow to get the desired results. Anyone interested? If so, thanks in advance.
I have to second Bill’s request. And I have to disagree with you Robert.
The earlier posts may explain everything to those who don’t need the explanation, but for the rest of us they are in an undecipherable language. Isn’t there any solution for those of us who are not programmers?
[...] video is in response to comments on my Installing the JDK 1.6 on Mac OS X post. Multiple readers were having trouble getting it running, and I’m hoping that this video [...]
Hi Andrew, hopefully this video will be more helpful than this post: http://blog.adsdevshop.com/2009/03/17/installing-the-jdk-16-on-mac-os-x-the-video/
Is there an advantage to using SoyLatte over the Java SE 6 version 1.6.0_05 provided by Apple (http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_1)?
Apparently that update doesn’t set the default Java to the new version, but you could then use something like http://www.macosxhints.com/article.php?story=20060121171126988 to do it.
Hi Steven,
Before Apple posted that update (thank you for the link to it) SoyLatte was the only way you could get 1.6 onto your Mac.
Steven – I also created the file per the post and it doesn’t actually change the version of Java that my Mac is using
I’m not sure if I have to reboot or log in/out for it to take effect though. I’ll try it and see.
Just got my Mac so I couldn’t figure this out yesterday, but for me, in the “Utilities” folder under “Applications” there’s a “Java” folder. If you open up the “Java Preferences” you can set your preferred Java version for applets and applications.
Mine is now:
java version “1.6.0_07″
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
Awesome, thanks Steve. That works like a charm.
The Best OPtion is provided by Steven Pothoven, this work’s fine!!!!
Thak’s a lot for you help.
Don’t wise your time, just go to “Utilities†folder under “Applications†there’s a “Javaâ€.
Regards.
Vlad.
HI , I can get my MBP 10.5.6 to say Java = 1.6 from your steps (TY by the way) , and my app that needs version 1.6 still says i only have 1.5 on… , but i seem to have a few problems, when i reboot , it is back to 1.5 , which means to me my path is not correct… i used the export PATH option… cause i cannot find the file .profile or .bash_profile anywhere, their not hidden , they are just not there.
, any suggestions would be appreciated.!!
Hi Riaan,
If you follow the instructions from Steven above that should get you working with the new Java. Once I rebooted all was well.
Thanks Steve, My first macbook is now 24 hours old. I found the Java Preferences before but I didn’t realize you could drag the different versions into position. I went back and tried again after reading your post and finally figured it out and got the proper readout at the terminal. The video was helpful but blurry and I could not see the proper syntax for the profile thing
what is a path how do i get there
can’t download
hi i couldn’t even download the Soylatte program, I typed the username and password given on the top and the page deny my acces what can i do ?
@Arturo: you shouldn’t need to download Soylatte anymore since Apple just release an updated version of Java.
the problem is that i have a mac os x 10.4 tiger and i don’t have a mac account and