Wednesday, March 10, 2010

You are here: Home > Articles > Installing the JDK 1.6 on Mac OS X

Installing the JDK 1.6 on Mac OS X

by Robert Dempsey on February 26, 2008

UPDATE 11/12/09: I’ve updated the post with links to download SoyLatte 1.0.3.

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.3 for Mac OS X 10.4 and 10.5.
  • Unzip the package and put the entire directory where you want it
  • Optional: rename the folder to soylatte16-1.0.3
  • Add the soylatte16-1.0.3/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.

Bookmark and Share

Other Posts That Might Interest You

  1. Installing Java, Groovy, Grails, and Netbeans in VMWare for Groovy Development
  2. Soylatte Download for the JDK 1.6 on Mac Install Tutorial
  3. Installing the JDK 1.6 on Mac OS X The Video
  • jasonfmf
    ok so i also have 10.4.11 when i enter open /applications/textedit.app ~/.profile or ~/.bash_profile it tells me no such file exist. i cant open text edit. suggestions please??????
  • dsl
    same issue as Jason
  • dsl
    Ok, figured things out...

    Create a new file in your home folder, called .bash_profile (with no extension ie no .rtf, .txt, etc at the end). If you use textedit then it'll save in rtf format (and textedit rtf files automatically contain several extraneous lines that screws stuff up), so use vi for editing instead. To save and close a file in vi, type ZZ

    To display hidden files (hidden files are marked with a dot) type this into terminal: defaults write com.apple.finder AppleShowAllFiles TRUE then type, killall Finder

    .bash_profile needs only these three lines:
    export JAVA_HOME=/Users/DLEW/Downloads/soylatte16/bin/java
    export PATH=$PATH:/Users/DLEW/Downloads/soylatte16/bin
    export AUTOFEATURE=true

    Of course you'll want to replace path info with your own soylatte download location.

    Hope this helps.

    Word up - peace.

    ~Daniel S. L.
  • jayrogue
    hi i have os x 10.4.11 an just down loaded soylatte 16-1.0.3 i click on bin in my apps; then i dont know how to enter the matrix to change the path .i watched the video but couldnt see how or what to click on next after clicking on the bin folder,i was lost .could you please email me learner instuctions, i have been trying 2 use limewire but it keeps telling me i need java 1.6 or higher please help thanks jay
  • eric
    i know this just shows my lack of understanding but in the video after changing the file name he opens up a app. where its a black screen that allows him to write what needs to be written... how do i get to that screen
  • For those that need help with Soylatte and Netbeans 6 on OS X 10.4.11, you're probably having trouble with the fact that Soylatte doesn't support Apple's Aqua. So you'll need openmotif (via macports f.ex and hence you'll need Xcode), X11.app, and you need to edit your /Applications/NetBeans/NetBeans 6.8.app/Contents/Resources/NetBeans/etc/netbeans.conf and add:
    netbeans_jdkhome="/usr/local/soylatte16-i386-1.0.3"
    aswell as appending "-laf javax.swing.plaf.metal.MetalLookAndFeel" to netbeans_default_options

    And X11.app (located in /Applications/Utilities) needs to be running before you launch Netbeans
  • Markell
    Hey, ive tried everything in these blog post and comments, but i cant get past the part when i have to "open Applications/TextEdit.app -/.bash_profile

    This is What i got....


    Last login: Wed Jan 13 22:13:57 on ttyp1
    Welcome to Darwin!
    Smash-14:~ macbook1$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin
    Smash-14:~ macbook1$ ls
    Desktop Library Music Public ~.bash_profile
    Documents Movies Pictures Sites
    Smash-14:~ macbook1$ cd Documents/
    Smash-14:~/Documents macbook1$ ls
    2009 Cash Flow Microsoft User Data
    DivX for Mac.pkg Soylatte16-1.0.3
    LimeWireOSX.dmg soylatte16-i386-1.0.3.tar.bz2
    Smash-14:~/Documents macbook1$ cd Soylatte16-1.0.3
    Smash-14:~/Documents/Soylatte16-1.0.3 macbook1$ ls
    COPYRIGHT bin man
    LICENSE demo sample
    README.html include src.zip
    README_ja.html jre
    README_zh_CN.html lib
    Smash-14:~/Documents/Soylatte16-1.0.3 macbook1$ cd bin/
    Smash-14:~/Documents/Soylatte16-1.0.3/bin macbook1$ pwd
    /Users/macbook1/Documents/Soylatte16-1.0.3/bin
    Smash-14:~/Documents/Soylatte16-1.0.3/bin macbook1$ open Applications/TextEdit.app /~.bash_profile
    2010-01-13 22:49:24.587 open[736] No such file: /Users/macbook1/Documents/Soylatte16-1.0.3/bin/Applications/TextEdit.app
    Smash-14:~/Documents/Soylatte16-1.0.3/bin macbook1$ open Applications/TextEdit.app - /~.bash_profile
    2010-01-13 22:49:49.167 open[737] No such file: /Users/macbook1/Documents/Soylatte16-1.0.3/bin/Applications/TextEdit.app
    Smash-14:~/Documents/Soylatte16-1.0.3/bin macbook1$
  • Rony
    Hi,
    i have Mac OS X 10.4.11
    the problem that i have is i download the latest version msn 7.0.2 and each time i try to log in to msn i get this msg wrong email or password but the fact is it's not wrong!
    any idea ? could you please guys help me?
  • Walt
    do you need an intel based Mac
  • ra
    how do you get $path?
  • Hi ra,

    You can get the $PATH by opening up a terminal and typing "echo $PATH" That will show you what's in that variable.
  • cat
    Hi. I'm trying to install Zettelkasten (on my MAC OS X 10.4.11) who needs java 1.6 and after a long long looking for some instruction about it. I downloaded "soylatte16-1.0.3" and I installed it in my Downloads directory. I tried to follow the steps you give but unfortunattely, it didn't work. I'm just a "simple user" in mac and I don't know what to do or to try right now. In the Terminal I got this:

    d54c1c528:~ Catherinette$ echo $PATH
    /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin

    Normally, if I follow your steps, It must be something like this:
    /bin:/sbin:/usr/bin:/usr/sbin:/usr/soylatte16-1.0.3/bin
    right?

    so.... what am I suppose to do now? I really need to use my program so, if anybody can help.... THANKS :-)
  • cat
    It finally works ! I don't know how it finally works because I just did the same thing but it works now. I got the java version 16-1.0.3 :-) Unfortunately the application that requires java 1.6 still doesn't work.... Same problem like chem.eng. Any idea?

    tks
  • HellofromGermany
    Have the same problem like Cat on an Intel Core 2 Duo Macbook2,1 with Mac OS X 10.4.11 (Tiger) and the program "Zettelkasten": http://zettelkasten.danielluedecke.de/en/index.php.

    After installing soylatte I opened terminal and wrote: export PATH=/users/xxxxxxxx/soylatte16-i386-1.0.3/bin:$PATH

    "java -version":

    java version "1.6.0_03-p3"
    Java(TM) SE Runtime Environment (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00)
    Java HotSpot(TM) Client VM (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00, mixed mode)

    But Zettelkasten still does not work ("This application requires Java 1.6 or later, but only the following Java versions are installed: 1.5.0, 1.4.2, 1.5, 1.4. ").

    X11 is istalled.

    Tryed to change the java preferences to Java SE 6, but there is no Java SE 6 (only J2SE 1.4.2 and J2SE 5.0).

    Everytime I open the terminal I have to do the "export PATH..:"-thing again, changes are not fixed.
  • Hi HellofromGermany,

    It sounds like perhaps you have to edit a different file. I'm on Mac OS X 10.6.2 so I'm not sure which file you have, however I needed to edit ~/.bash_profile. I also edited ~/.profile but that didn't work
  • Travis
    Ok, I figured it out. For all of us 32-bit macs this version of SoyLatte wont work, but if you go to this site: http://landonf.bikemonkey.org/static/soylatte/
    and download the correct version for your machine then follow the steps J.T. posteed you should be able to get it to work. (At least I did)
    Good Luck!!!!!!!
  • Ben
    Thanks! Saved me hours of hunting and loads of angst! Needed 1.6 for Squash on my laptop... with a deadline tomorrow.
  • Ben
    Thanks! Saved me hours of hunting and loads of angst! Needed 1.6 for Squash on my laptop... with a deadline tomorrow.
  • rduke15
    For some reason, it doesn't seem to work on this Intel Mac with OS 10.5.8. See below:

    $ echo $PATH
    /Users/my_username/bin/soylatte16-i386-1.0.2/bin:/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin:/Users/my_username/bin

    $ java -version
    java version "1.5.0_20"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20-b02-315)
    Java HotSpot(TM) Client VM (build 1.5.0_20-141, mixed mode, sharing)

    $ /Users/my_username/bin/soylatte16-i386-1.0.2/bin/java -version
    -bash: ./java: Permission denied

    $ chmod +x /Users/my_username/bin/soylatte16-i386-1.0.2/bin/*
    $ /Users/my_username/bin/soylatte16-i386-1.0.2/bin/java -version
    Error: could not find libjava.dylib
    Error: could not find Java 2 Runtime Environment.
  • Jeff
    I did the install as described above and I am showing 1.6 as my java version in the Terminal. However, jdownloader is not recognizing the java version as java 1.6? It states "This application requires Java 1.6 or later, but only the following Java versions are installed: 1.5.0, 1.4.2, 1.5, 1.4. " I am currently running 10.4.11.

    Any thoughts?
  • Shaun
    Jeff,i feel like a fool.I've tried to enter password for Soylatte to no avail..any tips.Cheers
  • Jordan
    Uh hi... I dont get the video or anything.. i downloaded it.. is Path Terminal?
    plz explain step by step
  • Max
    does soylatte work with PPC?
  • Luca
    HI!
    I'm new with mac and a didn't understand the point where i have to Add the soylatte16-1.0.2/bin path to my $PATH variable to use soylatte rather than the JDK 1.5 that comes installed.
    How can i do that?
  • Michael
    What about getting Java 6 on a PowerBook G4 with a PPC and OSX 10.5? I could really use some suggestions on getting this to work.

    Thanks
  • Hi Michael - a search of the Apple Support forums came up blank for support for Java on PPC and OSX 10.5. If you do find any resources please add them to the comments. Thanks.
  • Thank you exotiicmoya,
    your instructions worked like a charm.

    All I would add is this:
    After step 2, double click on the .dmg and follow through with the Java Installation.

    For what I was trying to do, I still needed to complete one more step. Open .bash_login in your home with an editor and add:

    export
    JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/

    (that's only one line)

    after that, I was good to go.
    I'm working with an OSX 10.4.11 here.

    Hope This is helpful to someone, as someone was helpful to me.
    take care strangers,
    -h
  • Adam
    also, im not sure if this is also true with 10.4.x versions. I use 10.5.8
  • Adam
    Java 1.6 dows not work on all intel macs btw. if anyone has an intel core duo (not intel core 2 duo) you cannot run java 1.6. Java 1.6 requires a Intel core 2 duo (64bit environment) to run.
  • exotiicmoya
    how to install java 1.6 release 1 on mac os x 10.4.11 or later
    ----------------------------------
    1. download the normal 1.6 Java version (http://images.spelpunt.nl/javase6release1dp6.dmg) from this website. credit goes to chris -thanks for the link

    2. In Finder, go to folder /System/Library/Frameworks/JavaVM.framework/Resources and ---A---. move the files “version.plist” and “Info-macos.plist” to a safe place like the Desktop. --B--. delete “version.plist” and “Info-macos.plist” from the above "Resources" folder
    [The moving process might prompt you for your password]
    ------instruction were found here [ http://www.kunaldua.com/blog/?p=97 ]

    3. change the Java preferences. --A.-- Go to /applications/utilities/java/Java SE 6 . --B.-- run the "Java Preferences" application
    --C.--On the General tab, under Java Applet Runtime Settings, select “Java SE 6″. In Java Application Runtime Settings, re-arrange the list of Java versions so that Java SE 6 is the top item ---credit goes to Steven Pothoven
  • Marta
    Sorry, I meant Java 1.6 obviously...
  • Marta
    Hi Robert,

    software update tells me I've nothing to update. Still, when running a different application, it tell me I need Java 6 or higher on my Mac, which I don't have... Any ideas?

    Thanks
  • Marta
    Hi Steven,

    I am trying to get the Java SE 6 version 1.6.0_05 provided by Apple but the link you provided does not work. Any idea where I could download it from?
    Alternatively, I have been trying to install SoyLate but the video with instructions on how to do it is very blurry and I can't really decispher the commands to type in :-(
    What should I try?

    thanks
  • Hi Marta,

    You should be able to grab it via the Software Update on the Mac.
  • marc
    ok tout ca c est bein beau les commentaire mais moi je veux installer java 1.6!!!!!!!!!
  • Arturo
    the problem is that i have a mac os x 10.4 tiger and i don't have a mac account and
  • @Arturo: you shouldn't need to download Soylatte anymore since Apple just release an updated version of Java.
  • Arturo
    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 ?
  • Taifusin
    can't download
  • Madison
    what is a path how do i get there
  • Mike
    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
  • 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.
  • Riaan
    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.!!
  • Vladimir Robles
    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.
  • 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.
  • 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.
  • 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.
  • 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...
    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=20... to do it.
  • Andrew
    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?
  • Hi Andrew, hopefully this video will be more helpful than this post: http://blog.adsdevshop.com/2009/03/17/installin...
  • Bill
    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.
  • HenryK
    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!
  • Henni
    What Joe wrote worked well for me, too, even for my PPC with 10.4.11

    result: java version "1.6.0-dp"

    Thanks!
  • Scot Rhodes
    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.
  • 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 ...
  • Andrew
    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.
  • Joe C
    For those finding it difficult, try this...

    http://vegdave.wordpress.com/2007/10/13/java-se...

    It worked well for me. Make sure you read the comment about installing over newer versions!
  • Ian
    @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 :/
  • Ian
    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
  • Ian
    @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
  • Ian
    @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?
  • Ian
    @ed eustace: Hello, I to have 10.4.11 and i am looking to use java 1.6 but when i downloaded it it said "Couldnt open javaformacosx10.5update1.pkg" This package type requires Mac OS x 10.5." and i see you had sucess. My point is that i am not computer savy and i do not understand these instuctions and was curious if you could help me. If you could respond to my email that would be great, if you do not want to help me i understand were all busy nowadays. But thanks for reading myiqiz9999@yahoo.com
  • Chrisp
    made sure there was no mistake with - Usr, User or Users - checked again and all OK now after restarting Terminal
  • Stephen
    Thats the same bash_profile i have in my intel mac 10.4 and I get the 1.6 version.

    One more thing to point out is that you should logout of terminal and start a new session to actually load the changes made to bash_profile.
  • @Chrisp: here's exactly what I have in my ~/.bash_profile file:

    export PATH="/Users/rdempsey/Source/soylatte16-1.0.2/bin

    That's the first part of that file. I then also have:

    export JAVA_HOME="/Users/rdempsey/Source/soylatte16-1.0.2"

    I then get the following when typing "java -version" in my terminal:

    Musashi:rails rdempsey$ 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)

    In order for my Mac to pick up on these changes, I had to open a new terminal session.

    @Andy: I'm not sure if there is a Soylatte for PPC. I look for it and post here if I find that there is.
  • Chrisp
    Just a quick update - since i posted back last year - I have had no luck getting my mac update program to tell me that he has the 1.6 version installed.

    I changed every path in every place allover my computer and still the little MAC decides he doesn't know whats going on ...

    and STILL we have YET to find someone to comment here that ACTUALLY had SUCCESS with this problem - my conclusion .... it's fing impossible!
  • Miguel
    Hi Guys, specially to eth! Your post really helped me make sense.
    I was able to edit my $PATH as directed but when I checked Java version it is still 1.5. I am using a Intel Mac. Please find my terminal entry below:
    catrina-paulinos-computer:~ catrinapaulino$ export PATH=/User/catrinapaulino/soylatte16-1.0.2/bin:$PATH >>~/.bash_profile
    catrina-paulinos-computer:~ catrinapaulino$ echo $PATH
    /User/catrinapaulino/soylatte16-1.0.2/bin:/bin:/sbin:/usr/bin:/usr/sbin
    catrina-paulinos-computer:~ catrinapaulino$ java -version
    java version “1.5.0_16″
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-275)
    Java HotSpot(TM) Client VM (build 1.5.0_16-132, mixed mode, sharing)
    catrina-paulinos-computer:~ catrinapaulino$
    Hope your guys can help. Lastly, using the terminal is really cool, can anyone recommend some sites I can read about command usage and how using the terminal really works?
    Thanks in advance

    Sorry I had to post again, misspelled my email :)
  • Miguel
    Hi Guys, specially to eth! Your post really helped me make sense.

    I was able to edit my $PATH as directed but when I checked Java version it is still 1.5. I am using a Intel Mac. Please find my terminal entry below:

    catrina-paulinos-computer:~ catrinapaulino$ export PATH=/User/catrinapaulino/soylatte16-1.0.2/bin:$PATH >>~/.bash_profile

    catrina-paulinos-computer:~ catrinapaulino$ echo $PATH

    /User/catrinapaulino/soylatte16-1.0.2/bin:/bin:/sbin:/usr/bin:/usr/sbin

    catrina-paulinos-computer:~ catrinapaulino$ java -version
    java version "1.5.0_16"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-275)
    Java HotSpot(TM) Client VM (build 1.5.0_16-132, mixed mode, sharing)
    catrina-paulinos-computer:~ catrinapaulino$


    Hope your guys can help. Lastly, using the terminal is really cool, can anyone recommend some sites I can read about command usage and how using the terminal really works?

    Thanks in advance
  • Andy
    Hi !

    It seems that we PPC people have problems with this release... Is there soyalatte for PPC?
    I am deploying my application in next few weeks and it would be nice to have some sollution... I don't need java for normal install, but for USB release of application I would need it.
    Thx
    Andy
  • gecks
    I don't understand any of this, path? and what's this bash profile thingy? i typed it to several suggestions offered here, but i always end up still having java 1.5

    whole things making my head ache, maybe i'll just wait till they officially release 1.6 for 10.4
  • @Soylent Green: are you editing your path variable? That should take precedence in the order of looking where things are.
  • Soylent Green
    And it still doesn't work! Help anybody.
  • Soylent Green
    Added note if you save as default under the terminal it will open with that shell everytime you open the terminal. Only problem I had was that I couldn't get a regular terminl window without that again. That is until I deleted the terminal.plist in my preferences.
  • Soylent Green
    OK I have Imac intel 2.1.6 with 2 gb ram and OS 10.4.11. I was successful like most in gettin it to work but like most as soon as I type java -version it reverts back to 1.5. I then tried to see if theres away of setting it as my default for my java but having no knowledge the only way I can think of is saving it as a shell and adding it to my start up items in my prefences. It works but only in the sense that when I reboot it opens up the terminal & runs it. Again it shows 1.6 when I enter java -version but reverts when I enter it again. I tried runnin a program that needs 1.6 but it only sees 1.5. Anyone know of away of setting as javas default? Can we replace whatever java is seeing as the default somehow?

    Thx In Advance!
  • Jake
    okay well i read lasts posts and i found out how to put it into $PATH but i misstyped things and now i have like 3 things in this path and it still says i have 1.5 java
  • Jake
    what do you mean $PATH variable?
    where can i find that so i can add this to it.
  • Alan
    I have the same problem, successfully installed soya initially, following eth's instructions in the post on nov 4th, but it reverts to 1.5, I'm trying to test the new version of a program which requires 1.6.

    any suggestions?

    alan
  • Andreas
    Hi, I think I need some help with this. At first it seems to work but after typing "$ java -version" the old java version appears.


    /Users/AndreasAndersson/soylatte16-i386-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) Client VM (build 1.6.0_03-p3-landonf_03_feb_2008_02_12-b00, mixed mode)


    $ java -version

    java version "1.5.0_16"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-275)
    Java HotSpot(TM) Client VM (build 1.5.0_16-132, mixed mode, sharing)

    Please, can someone help me with this?
  • Hi Brotelle,

    Any info on how you got it going?
  • brotelle
    Finally I found it so don't need help anymore... thanks !
  • brotelle
    Hi !

    Thank you for your post, i uploaded to 1.6 successfully. But now I need to use the JDK 1.6 version for Netbeans, How do I do that ?

    Thanks !
  • Patrick
    Thank you for instruction, I have successfully ran Java 1.6 on my Mac 1.4.11.
    One more question though, is there any way to back to java 1.5 in case i get some problem as using java 1.6 on my mac.

    Thank you for help
  • eth
    One More Thing...

    SoyLatte will only run on Intel-based Macs.
  • eth
    I am trying to install Aqua Data on my 10.4.11 but it needs Java 1.6. Even after doing all the above and got it working the Aqua Data still not detecting the Java 1.6.

    Any insights??????


    ==============================

    Those who are confused about..

    “Add the soylatte16-1.0.2/bin path to your $PATH variable to use soylatte rather than the JDK 1.5 that comes installed”

    I am too but I finally figure it out.. open terminal and type in the following..

    export PATH=/Users/me/soylatte16-1.0.2/bin:$PATH >>~/.bash_profile

    Note: instead of "/Users/me/soylatte16-1.0.2/bin" put in the path/address of where you put that "soylatte16-1.0.2" folder in step 2. if you dont know the address/path of where you put your folder just click on the "soylatte16-1.0.2" folder and press Apple+I and under "Where" would be where you put that folder. Now put in "/soylatte16-1.0.2/bin" after whatever is in "Where".

    Next type in..

    echo $path

    Now you should see the path added in.. next type in..

    java -version

    It should now be version 1.6!!
  • Recent update on Leopard allows you to run JSE6. All you have to do is install the update, but then you have to go to /Applications/Utilities/Java/Java preferences. Set your default to JSE 6 and you're good to go.
  • sam
    mac 10.4.11

    cannot execute binary file.

    i am noticing no one is answering this problem; i do not believe this package can work on our version of OS.
  • @MacBook: on my Mac, the $PATH variable is in ~/.bash_profile. Open that file up in your favorite text editor to update the $PATH. The $PATH should either be in that file, or in ~/.profile.
  • Macbook
    "Add the soylatte16-1.0.2/bin path to your $PATH variable to use soylatte rather than the JDK 1.5 that comes installed"

    could u plz tell me how to change the path variable???
  • Henni
    I got the same error as Keith and I'm using PPC with 10.4.11 ...

    >> 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’.

    So there's no JDK 1.6 for PPC Mac OS X 10.4.11? Has anyone got a new idea maybe?
    thx...
  • peter Yim
    all did was change my .profile in my home directory
    and it works
  • Laygardt
    Okay, ppl. Please.

    Would some one make a how to list?

    For all the noobs (ME)

    Thank you.
  • To find your $PATH variable type:

    $ echo $PATH

    To then edit your $PATH variable, you edit ~/.bash_profile

    The $PATH variable helps your command-line find where your applications are located. Some are created by the OS, the others you can enter yourself.
  • TRik
    I am also a newbie... how would i move this to my $path? and what exactly is an $path? I really need help on this one... I run mac os x 10.4.11 tiger
  • JB
    For CrisP: check this out (shell init config is a joke!): http://jmatrix.net/dao/case/case.jsp?case=7F000...

    haven't tested but you should:
    Add this line to your .[bash_]profile if you want your bashrc sourced every time:
    [ -f .bashrc ] && . .bashrc

    Add the path modif to:
    ~/.bashrc

    Hope that helps
  • OK I ran into some serious problems now ... every time i run a program that needs Java 1.6 - it says i don't have it ... which means my default is not set correctly ...

    Chris-Bs-Computer:~ chrisbrown$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin:/usr/soylatte16-1.0.2/bin

    Now when i run the command . ./.profile the correct PATH appears but isn't the default as it always reverts to the old wrong PATH

    Chris-Bs-Computer:~ chrisbrown$ . ./.profile
    Chris-Bs-Computer:~ chrisbrown$ echo $PATH
    /usr/soylatte16-1.0.2/bin:/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/soylatte16-1.0.2/bin:/usr/X11R6/bin

    - is there any ideas out there?
  • I'm sorry but no one has been tottaly clear for the newbess what actuall a $path is and what to use to get to it!

    I tried different combinations of ./bash_profile but it won't come up in terminal.

    I know this is a stupid newbee thing but I can't even find out what to search for to find the answer for how to get past this BASIC stumbling block.
    Please help the newbees :D

    and then join our Healthybusiness community lol
  • iPier
    Update JAVA 1.6 on Leopard Mac OS X 1.5
    Download Java Update From http://www.apple.com/support/downloads/javaform...

    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)
  • 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
  • Gormo
    Hi i'm a relative newbie when it comes to this $PATH stuff, how do i do it?
  • 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.
  • Paul Tremblett
    Looks like it's for Intel-based Macs only. PPCs give the message 'cannot execute binary file'.
  • tom
    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
  • Zach
    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?
  • Zach
    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?
  • Thanks for the help Ed.
  • ed eustace
    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
  • 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.
  • Keith
    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!
blog comments powered by Disqus

Previous post:

Next post: