Tuesday, February 9, 2010

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

Installing the JDK 1.6 on Mac OS X The Video

by Robert Dempsey on March 17, 2009

UPDATE: I ran Software Update last night (6.16.09) and Apple has released an update for Java! It looks like we can now get 1.6. Happy days.

This 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 helps to clear things up.

One thing that I did forget to mention in the video is how to open the Terminal application. Open it by going to the Applications/Utilities folder, and double-clicking on the Terminal application.

Bookmark and Share
  • Justin
    I am also having the same problem, all I get is a blank bash_profile window to show up. I am using tiger 10.4.11! Please help, would love to be able to use my Limewire again. Here's exactly what I did (by the way, my soylatte folder is in my documents now.

    justin-wheelers-computer:~ justinwheeler$ ECHO $PATH
    /bin:/sbin:/usr/bin:/usr/sbin
    justin-wheelers-computer:~ justinwheeler$ open /Applications/TextEdit.app ~/.bash_profile
    justin-wheelers-computer:~ justinwheeler$
  • 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
  • Brandon Treadway
    Hi Robert.
    So I was wondering if you have been able to find a solution for Tiger 10.4.11 for Java 1.6 problem. I saw that you gave a URL for an update from Apple which I downloaded. However, my computer says that it cannot run it when i try and unpack it. Is there something that I am doing wrong? Why would my computer not let me do any of this?
  • Hey Brandon,

    I haven't found a way to make this happen on 10.4.11 yet, and I'm not sure why you can't install the Apple update, if you are an administrator on your computer. Very odd. I'll keep digging.
  • Joann
    The terminal tel me :

    The file /Users/joann/.profile does not exist.

    what I have to do ?


    Ty very much for your help
  • thabata
    I have a question.
    i am trying to follow your video to install java 1.6 on my mac 10.4.11.
    but in the 1:25 min of your video i got off-sided because I do not understand how you opened the window "entrance to the matrix"
    i already downloaded soylatte 1.0.3, and got to the bin folder, but couldn't pass that point because I couldn't open "entrance to the matrix" window.
    please help
  • Hi Thababa, you can open the Terminal application by going to the Applications folder, and then the Utilities folder. You'll find Terminal in there.
  • eliza
    Question
    When you put in "open/ applications/textedit.app -/.profile" into the terminal window, where did you find this?
    Because when i typed it in and pushed enter it didn't work.
  • Hi Eliza, you want to have "open /applications/textedit.app -/.profile" in your terminal. You have the "/" by the open, whereas you need it to be in front of applications.
  • Ryan
    The terminal tel me :
    The file /Users/ryan/.profile does not exist.

    What do I do?

    Thanks
  • Hi Ryan,

    On some Macs you might have a .bash_profile file there. You can also create the file.
  • Riaan
    HI , I can export the path via the command export, and then i check that my java does say 1.6 , but my apps that needs 1.6 still says that i have 1.5 on... and when i reboot and check my java it says 1.5 again. I dont have a .profile or a .bash_profile, running 10.5.6 , laptop was bought with 10.4 on but since then upgraded to 10.5 , any ideas? , any help will be appreciated.
  • Heidi
    Hi, I am able to follow all the instructions all the way to getting the information I need to copy and paste into the last path. However, I am not able to open the "open /applications/textedit.app -/.profile" to get to that last point and I don't know how to create the file.......any suggestions?
  • Hi Heidi,

    That might mean that the .profile file doesn't exist, though it should create an empty file that you can then put the $PATH information into. Make sure you use the "~" character for ~/.profile and not a dash. Let me know if that works, or doesn't.
  • Reader
    Hi there, I would like to point out that soylatte is only a JRE (Java Runtime Enviroment) and not a JDK (Java Development Kit).

    The difference is that the JDK comes with additional tools for developing Java applications. This makes a big difference for developers, who need the profiling tools in the JDK (i.e. VisualVM doesn't work without these) or access to the sources.
  • Heidi
    Thanks Robert, but still no luck! It says I'm still running the old version of Java. I also did not get the correct path that I had copy and pasted into textedit....if this might help this is what my textedit page looked like "/Users/heidi/Desktop/soylatte16-1.0.2/bin:$PATH" Thank you for all our hard work to help us who know nothing about computers!
  • try this in that file: export PATH=/Users/heidi/Desktop/soylatte16-1.0.2/bin:$PATH
  • Heidi
    No it still is not working, I'm not sure what I am doing wrong but I am thinking I will probably have to upgrade to the newer software to be able to run any programs that need it such as limewire. Thank you again for your help!
  • So....there was no .profile or .bash_profile...So I created one of each and put

    export PATH= /Users/houseofcats/soylatte/bin:$PATH

    in the each of the files....saved, closed. But the echo $PATH shows no change....Where did I go wrong?

    -bz
  • Hi Billy, did you start a new terminal session before checking the $PATH? You'll need to do that to ensure that changes have taken effect.
  • Billy
    Yea, I started one in a new tab...then tried shutting down terminal and restarting, then tried rebooting the whole machine.

    No change in the result of "echo $PATH"

    Is it possible that Textedit is saving in the wrong type of file format? (I believe it is defaulting to .rtf)

    -Billy
  • Yes that's possible. Those files don't have an extension on them. Try removing the extension so it's just .profile.
  • kelvin
    Last login: Thu Apr 2 20:26:41 on ttyp1
    Welcome to Darwin!
    n218103211075:~ yan$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin
    n218103211075:~ yan$ open/Applications/TextEdit.app-/.profile
    -bash: open/Applications/TextEdit.app-/.profile: No such file or directory
    n218103211075:~ yan$



    did I do right thing?can you type theit out?thanks.and how can I open the build in SDK?thanks
  • kelvin
    and...how can I open the build in java JDK
  • Hi Kelvin, what do you mean by opening the build in the Java JDK? I think you're going outside of my Java knowledge now.
  • Maria
    I am able to open Terminal bash. When I enter open /Applications/TextEdit/.app ~/.profile, I receive the date, time open [336] No such file. If I try a number of times, the number after open changes. I tried the option of entering the path directly into the terminal session and closing but that didn't work. I can not open the text edit with the current profile so I can enter the path into the profile window.
  • @Maria: try this: open /Applications/TextEdit.app ~/.profile

    It looks like you have an additional "/" in what you're typing.
  • kelvin
    I want to make a program than I need to open the java SE(JDK)how can I open it?thanks
  • Thanks for the additional info Kelvin. That's now outside of the scope of my java knowledge. I'd hit the Java sites for the help you need.
  • Maria
    Thanks Robert but it your suggestion made no difference. I tried multiple combinations of sequence but still got the same response.
  • Eileen
    I have OS X 4.11...I wonder if the rest of you are running the same os as it seems we're all stuck at the same juncture. No .profile file nor specific instructions to create said file. Maybe a step-by-step would lend some much needed clarity...
  • Tony
    Hi Robert,

    Everything worked fine until I typed "java -version", got an error that reads

    "-bash: /Users/tony/desktop/downloads/soylatte16-1.0.2/bin/java: cannot execute binary file"

    Any ideas?

    Cheers.
  • Tony - I think you want to leave off that extra "java" at the end there so it looks in the bin directory for the java executable.
  • macluver
    Can you explain what you're referring to to when you say, "leave off that extra "java" at the end" in your reply to Tony?

    I enter...
    robs-powerbook58:~ Mine$ java -version

    and get...
    -bash: /Users/Mine/Downloads/soylatte/bin/java: cannot execute binary file

    what i don't understand is, where is the "extra java" coming from? It's not in the text file.

    Cheers!
  • Carol S.
    Please help!! I am stuck at the following point:

    Last login: Tue Apr 7 23:16:21 on ttyp1
    Welcome to Darwin!
    unknown-00-16-cb-08-e5-9b:~ carol$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin
    unknown-00-16-cb-08-e5-9b:~ carol$ open /Applications/TextEdit.app ~/.profile
    2009-04-07 23:21:40.498 open[378] No such file: /Users/carol/.profile
    unknown-00-16-cb-08-e5-9b:~ carol$

    THANKS!!
  • Hi Carol, what version of Mac OS X are you on? Do you have a .bash_profile file? That serves the same purpose.
  • Brandon Treadway
    Hey Robert, so I've typed in both .profile and .bash_profile but it tells me that its a directory file and then doesn't open up the textedit file.

    Help?
  • Brandon - are you trying to open the files in your home directory? If you do an "ln -lah" do you see either of the files there?
  • Brandon Treadway
    Alright Robert, i tried the ln -lah and this is what i got. Where do I go from here. Btw, I'm using Tiger 4.11. Dont know if that will make a difference.


    Last login: Fri Apr 10 16:12:49 on console
    Welcome to Darwin!
    gordon-treadways-computer:~ gordontreadway$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin
    gordon-treadways-computer:~ gordontreadway$ open /Applications/TextEdit.app ~/.profile
    2009-04-12 15:52:35.095 open[528] No such file: /Users/gordontreadway/.profile
    gordon-treadways-computer:~ gordontreadway$ ln -lah
    ln: illegal option -- l
    usage: ln [-fhinsv] file1 file2
    ln [-fhinsv] file ... directory
    link file1 file2
  • Hi Brandon,

    Thanks for the additional information. To test this out, I'll need to find a friend with Tiger on their computer. Everything I'm doing here is for Leopard 10.5.x. Thanks for letting me know.
  • john
    Hi, Im going nuts trying to install this version of java1.6
    I tryed to download Soylatte, but I don't know what password to put in

    Help
  • Hi John, download the Java update from Apple: http://docs.info.apple.com/article.html?artnum=...
  • Markus
    Hey i'm using mac os x Tiger 10.4.11 and wanna get java 1.6

    so i donwloade it and put the path in in my path variable... So now i type java -version and then i get the error message like this

    soylatte16-1.0.2/bin/java: cannot execute binary file

    i left off the java at the end of the path but it was there automatically.

    what am i doing wrong?


    markus
  • Hi Markus, skip the soylatte stuff and download the Java update from Apple: http://docs.info.apple.com/article.html?artnum=.... After you have that installed, go to Applications -> Utilities -> Java, and choose the version you want.
  • JenL
    After I type in the 'open /Applications/TextEdit.app -/.profile' I have:

    Last login: Tue Apr 21 16:06:17 on ttys000
    macbook-de-jennifer:~ Jen$ echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    macbook-de-jennifer:~ Jen$ open /Applications/TextEdit.app -/.profileopen: invalid option -- /
    Usage: open [-e] [-t] [-f] [-W] [-n] [-g] [-h] [-b ] [-a ] [filenames]
    Help: Open opens files from a shell.
    By default, opens each file using the default application for that file.
    If the file is in the form of a URL, the file will be opened as a URL.
    Options:
    -a Opens with the specified application.
    -b Opens with the specified application bundle identifier.
    -e Opens with TextEdit.
    -t Opens with default text editor.
    -f Reads input from standard input and opens with TextEdit.
    -W, --wait-apps Blocks until the used applications are closed (even if they were already running).
    -n, --new Open a new instance of the application even if one is already running.
    -g, --background Does not bring the application to the foreground.
    -h, --header Searches header file locations for headers matching the given filenames, and opens them.
    macbook-de-jennifer:~ Jen$

    How do I open the text edit page from here?

    Thanks, Jen
  • You need to have "~" in front of the /.profile, rather than a dash.
  • Ben
    Hi Rob - thanks so much for this little tutorial.

    I get everything apart from one little bit. I am on Mac OS X Tiger 10.4 by the way.

    When I type 'open /Applications/Textedit.app ~/.profile' into my terminal, it comes up with a text file which just says:

    test -r /sw/bin/init.sh && . /sw/bin/init.sh

    Any ideas what's happened?

    Thanks. This is a really great tutorial.
  • HI Ben - awesome avatar! Do you have a .bash_profile file? If not, I believe that you can still type in the $PATH commands in that file (a few lines down). Test it out though as I'm not 100% since I'm on Leopard. Let me know what happens. Thanks. Glad I could help.
  • Ben
    There's no .bash_profile so I'll put the $PATH command in .profile.

    Could you copy and paste the bit that's meant to already be in .profile? Thanks.
  • I've posted my full $PATH infos in the reply to Neva. Here it is again though. Remove what you don't need.

    export PATH=/opt/local/bin:/opt/local/sbin:/Users/rdempsey/Documents/soylatte/bin:$PATH
  • Neva
    I can't get the text edit to open for me. Could you possibly tell us what should be in the file and then we can create it ourselves? I feel like I'm missing something. This is all I have in my file:
    export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/Users/Neva/documents/soylatte/bin$PATH

    Is that right? Does it look like it's even close?

    Also, when I do the first echo $PATH, what I get back is really short. This is what I get back
    /bin:/sbin:/usr/bin:/usr/sbin
    Is that right? I see yours is really long so I figured that had to be part of the problem. I am going crazy trying to figure this out! Thank you for helping everyone!
  • Hi Neva - your $PATH looks just about correct. Is the documents folder spelled with a lowercase 'd', or is it capitalized. Also, you want to have a : between the last 'bin' and '$PATH'. On my Mac it is a capital D. Also, I've cleaned up my $PATH, and as requested, here is what I have in my .profile:

    export PATH=/opt/local/bin:/opt/local/sbin:/Users/rdempsey/Documents/soylatte/bin:$PATH
  • Ben
    Ah, that worked - thank you very very much! Now I just need to sort a few random little things.

    Again, many thanks.
  • My pleasure. Happy coding!
  • Ben
    Thanks! That worked! I checked the version as well with 'java -version' and everything is fine there! I do still have a small problem with the program I am using though.

    And also, I can't seem to find anything on Google about the first line of this problem.

    Hopefully you can help me a little. It seems like a simple problem. It obviously wants to connect to X11, but can't. X11 is open at this moment by the way - it looks like it needs to connect with that window somehow.

    Warning: The Mac OS -Xdock: option is currently unsupported
    _X11TransSocketINETConnect() can't get address for 0:6000: No address associated with nodename
    Exception in thread "main" java.lang.InternalError: Can't connect to X11 window

    If you could help, I would be so grateful!

    Thanks again.
  • Ben
    Ah ha! Don't worry!

    I had already put export DISPLAY=0:0 in the .profile and nothing happened. But I changed it to export DISPLAY=localhost:0 and everything works!

    Thanks again so much!
  • Chris
    I cannot get text edit to open on my computer. Any Suggestions?
  • Chris - do you have any other text editor? If you can get to the path via command-line you can open the file with any text editor.
  • JenL
    I tried both ~/.profile and ~/.profile and both come back with the response that it does not exist. What am I doing wrong?

    Last login: Thu Apr 23 13:01:40 on ttys000
    macbook-de-jennifer:~ Jen$ echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    macbook-de-jennifer:~ Jen$ open /Applications/TextEdit.app ~/.bash_profile
    The file /Users/Jen/.bash_profile does not exist.

    Last login: Thu Apr 23 13:09:31 on ttys000
    macbook-de-jennifer:~ Jen$ echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    macbook-de-jennifer:~ Jen$ open /Applications/TextEdit.app ~/.profileThe file /Users/Jen/.profile does not exist.
  • Jen and Ash: what version of Mac are you on?
  • ash s
    i am having the same problem as jen
  • Tony
    I seem to have the same problem as Jen and Ash I'm useing Mac osX 10.4.11


    Last login: Wed Apr 22 14:55:57 on console
    Welcome to Darwin!
    enes-nacis-ibook-g4:~ enesnaci$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin
    enes-nacis-ibook-g4:~ enesnaci$ open /Application/Textedit.app ~/.profile
    2009-04-24 15:41:15.481 open[11938] No such file: /Application/Textedit.app
    enes-nacis-ibook-g4:~ enesnaci$
  • I'll track down someone with 10.4.11 and see if they can help, and until then, hope a fellow reader using 10.4 can help out.
  • luc
    I have the same problem under the same sepec.... and no solution?!
  • JT
    Hey there,

    I really appreciate the video, but I am also having the 'file does not exist' problem. I am running a macbook with OS 10.5.6.

    Any suggestions?
  • I see the issue all. Try this:

    open ~/.profile

    That will use whatever your default text editor is to open up, or create the file for you if it doesn't exist. I hope that solves the issue.
  • If you still get a ".profile" does not exist, run this first:

    touch ~/.bash_profile

    then:

    open ~/.bash_profile
  • JT
    Hey there,

    When I enter 'echo $PATH', this is the path I get:

    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

    Where is the proper place to insert the path to the soylatte/bin folder?

    I assume I will enter this new path into the .bash_profile file I just created.

    Thanks for all the help.
  • Hi JT,

    If that PATH is in your .bash_profile directory, add it to the end. Otherwise, add the path to the file, open a new terminal session, and then echo the PATH back out.
  • Anna
    Hello,

    I was finally able to get that text editor open with
    touch ~/.bash_profile

    then:

    open ~/.bash_profile

    but when it opens up the .bash_profile window there isn't any path, just a blank window so I don't really know where or how to install the soylatte path in text editor...?If i just copy paste the soylatte/bin folder path to the blank window and then save it and then echo the path i just get this: /bin:/sbin:/usr/bin:/usr/sbin
    So, any suggestions what to do?

    Thanks for any help!
  • JT
    Hey,

    I was playing around and seemed to have found the trick (at least a trick to somebody who doesn't know what they are doing).

    In the .bash_profile that I created, I entered:

    export PATH=/usr/local/soylatte16-1.0.3/bin:$PATH


    Then, by echo $PATH:

    Last login: Fri May 1 09:14:33 on ttys000
    Macintosh:~ johnnytkach$ echo $PATH
    /usr/local/soylatte16-1.0.3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

    and by java -version:

    Macintosh:~ johnnytkach$ 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) Server VM (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00, mixed mode)
    Macintosh:~ johnnytkach$

    I haven't tried running a java application yet, but it looks like the computer is recognizing the soylatte files.

    Thanks for all the help and eternal patience.

    JT
  • Thanks for the trick JT! Let us know how it goes once you start running a Java app.
  • Anna
    Hello!

    Thanks for the help, everything JT mentioned above, did the trick and the my computer seems to also have recognized the files. However, now when I tried running a Java app. it still says:
    '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. Updating to a newer version of Mac OS X may resolve this.'
    Any ideas what to do now?

    Thanks
  • what i did was instead of putting the path in the .profile file, i entered this in the terminal: export PATH=(path to soylatte):$PATH this automatically put the bin folder in the path.
  • In the terminal i get an error saying that it cannot execute the binary "java"
  • angelica`
    i did everything you say but the teraminal shows this:
    lanenita:~ nelson$ java -version
    -bash: /Users/nelson/downloads/soylatte/bin/java: cannot execute binary file
    lanenita:~ nelson$
    what can i do if i already did everything you said??
    help me please
  • Simon
    THANK YOU VERY MUCH! :>)
  • Sharon
    Does JDK 1.6 work on 10.4.11 PowerPC and Intel, or just Intel? Probably a dumb question, but there seems to be some confusion out there. Soy lattes are on me if it works on PPC. :)
  • As far as I know this works on Intel only, however I'll check the Interwebs and see what I can find.
  • jamis Armstrong
    i tried following the video but when it gets to adding the bin to my path at about 1 min 24 seconds, i get really confused. i'm new to using macs i don't know what the "path" is or how to get to it can u help please
  • Garrett
    I am seeing the same error as angelica, but as Sharon stated, i am PPC 10.4.11.

    Anyone get this to work on PPC ?
  • Naty
    I'm having the same problem as jamis Armstrong
  • paul
    It wouldn't show me the new version until I formatted the $PATH in my bash_profile the same way JT did. I'm running 10.5.7
  • Mark
    Once I add the path for the bin folder into the .profile file and save, then go back to Terminal and do the echo $PATH... it doesn't change the old path. The text I added isn't there and when I do a java -version, I'm still on version 10.5... what am I doing wrong?
  • Hi Mark. Make sure that you open a new terminal session. If you are in the same terminal session, the change won't take effect.
  • Naty
    i tried following the video but when it gets to adding the bin to my path at about 1 min 24 seconds, i get really confused. i’m new to using macs i don’t know what the “path” is or how to get to it can u help please
  • Cinnamon
    I've done everything that was on the video and in the comments. Is there something I am missing? This is what I get when I type in java -verison

    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)
    mobile-166-128-102-234:~ RickiAnn$

    However, when I try to use it in an app. it won't work. Any ideas?
  • Hi Cinnamon,

    If the terminal is telling you that you have the right version of Java being used that should do it. I'm not a Java developer though so unfortunately I can't help you past it running. If you find out the solution please post it here for others. Thanks.
  • Riaan Conradie
    Excellent post Robert! You can't imagine how much frustration this video saved. :)
  • I'm glad to hear it helped Riaan. Thanks for the feedback.
  • Chrystal
    Thanks so much i downloaded soylatte and rename it. How do i get in the in the gray box. You said go to bin.
  • Anne
    Hello,

    Thank you for this helpful video, and all the comments. I have the same question Anna had, the Terminal open /.profile (what is this file for, by the way?) but it is blank ; What does it mean, and what can I do to neutralize this little problem?
  • katrina
    i tried everything that JT posted and i got the code and everything, but when i checked my java version:
    why-go-through-life-unnoticed:~ trina$ java -version
    java version "1.5.0_19"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
    Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)

    it's still 1.5 ='(
    do i need to download a java 1.6? but it wont let me. im desperate here! HELLP!!
  • @katrina: can you download the update from Apple? Apple recently released the 1.6 Java via Software Update.

    @leo: can you download the Java update from Apple? If so, you won't have to worry about the PATH info.
  • leo
    I'm having the same problem as jamis amstrong and naty.
    where I type $Path... is this window comming from a shortcut?
    thanks
  • leo
    I have the same confusion as jamis amstrong and naty. how do I get the path window from the bin forder to wrighte: echo $PATH... ?
    any help?
    thanks
  • Ezra
    Hold on, at 1:26 how did you get the window to open up? So confusing...
  • Bree
    I also need to know how you get the window to open, that opens at 1:26 in the instructional video?!?
  • @Ezra and @Bree: that's a terminal window. You can open it a few ways. You can use Spotlight and type in Terminal which will open it, or you can open your Applications folder in Finder, and then go to Utilities -> Terminal.
  • jaym
    how did you open that black window to enter the path???
  • @jaym are you able to update using Software Update on your Mac? If not, you can open the black window (Terminal) using Spotlight, or by opening your Applications folder in Finder, and then go to Utilities -> Terminal.
  • jaym
    it's not working ='( when i opened the textedit box using Anna's tip and i got an empty window then i used the tip from the person below her and nothing happened....what do i do???
  • jaym
    nothing happens when i enter stuff into the textedit box....what do i do??????
  • DAGIZ
    I have upgraded the Java version. And when I type: java -version I get 1.6. But when I try to run my 1.6 application I get error because it saying that I only run 1.5. If I run the Java test on http://www.javatester.org/version.html it also stand that I only have 1.5. How can I use 1.6 as default.
  • Thomas Bell
    My machine will not open the file /Applications/TextEdit.app -/.profile It keeps saying that there is not such file. Do you have any idea why? I did open the terminal and did all that you said regarding soylatte and the bin. I just can't get my system to open the hidden file that has the path that needs to include soylatte. Can you help? Thomas
  • Hi Thomas,

    You can create the file by doing "touch ~/.profile" That should then allow you to open the file with TextEdit.
  • Marta
    Hi Thhomas,

    When I am in terminal I can't open Profile with the text editor. I can't really read on your video the command I have to type. Could you please write it here for us? Is it:
    open /applications/textEdit.app ~/.profile ?

    Thanks
  • Sibala
    After a lot of hard work I got it done - For those who didn't maybe it helps, if you install MacPorts.

    But I still cant get this file running??? Any ideas?

    http://www.sendspace.com/file/qy6vnk
  • Lucas
    hey i cant find my downloads folder..i know...i don't do too well with Macs... :/
  • Vitor Silva
    Hi
    i can't open the .profile on terminal. Does it work with OS 10.4?
  • Laura McLaughlin
    i had the same problem as thomas, and i tried what you suggested, but when .profile did open, it was blank.... now what?
  • Kelin
    open[5224] No such file: /Users/(user)/Applications/TextEdit.app
    Now what?
  • Frank Serafini
    So at first I couldn't open the .profile window using the terminal, but then I typed "touch ~/.profile" as Robert Dempsy said. But the .profile window was blank, and had nowhere to past the path. Do I need MacPorts or something? I went to there website and it looks complicated.
  • Frank Serafini
    So I managed to get the same outcome as the video where I followed all the steps, and the terminal said I was running Java 1.6....., but Limewire still says this: "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. Updating to a newer version of Mac OS X may resolve this."

    Am I not running Java 1.6 now, or I wonder if the new version of Limewire will always give that message for Mac OS X 11.4?

    Any advice?
  • Kelsey P
    I can't figure out how to get that black box to open after you tell us to go to the "bin" folder so that I can add it to the path, I was watching the video to see how and the cursor moves off-screen and I don't quite know what it does. I don't speak programmer language at all so that may be why I am having issues.
    The part I'm not understanding is at about 1:25
  • Hi Kelsey,

    I mentioned how to open the "black box" in the comments above. That's called the Terminal window. You can open it a few ways, however the easiest way is to go to Applications -> Utilities -> Terminal in a Finder window.
  • niki
    so im not able to get to far beyond opening the terminal window.. what am i doing wrong.. please help??
    nicole-nicholls-computer:~ niki_1982$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin
    nicole-nicholls-computer:~ niki_1982$ ECHO $PATH
    /bin:/sbin:/usr/bin:/usr/sbin
    nicole-nicholls-computer:~ niki_1982$ open/Application/TextEdit.app~/.bash_profile
    -bash: open/Application/TextEdit.app~/.bash_profile: No such file or directory
    nicole-nicholls-computer:~ niki_1982$ touch~/.profile
    -bash: touch~/.profile: No such file or directory
    nicole-nicholls-computer:~ niki_1982$ open/aplication/textedit.app/touch~/.profile
    -bash: open/aplication/textedit.app/touch~/.profile: No such file or directory
    nicole-nicholls-computer:~ niki_1982$ touch~/.profile
    -bash: touch~/.profile: No such file or directory
    nicole-nicholls-computer:~ niki_1982$ echo$PATH
    -bash: echo/bin:/sbin:/usr/bin:/usr/sbin: No such file or directory
    nicole-nicholls-computer:~ niki_1982$
  • niki
    thank robert for your video and subsequent postings...
    so with the help of justin, JT and anna ive got the bash profile up but its blank..where have i gone wrong and where do i go from here
    i know robert you have previously said that apple now has a java 1.6 for mac with software update.. but is that true for all mac, i have OS 10.4.11 and its not automatically updating to that version
    this
  • brian smith
    i am trying to get the .profile to open in text edit. i have tried it the way you describe in the video, along with the tip using "touch" here in the comment section. both have failed with the response "no such file or directory". i am running macOS 10.4.11. i am trying to get java 6 to run on my mac using soy latte
  • Adam
    i did manage to get this working, but it only works when terminal is still open. Is there any way to save the preferences for every time i restart my computer
  • Cedric
    Hello I did all the changes from A to Z edited the profile, added the the bin path of SOYLATTE in the profile but when i'm asking the version i am still running java version 1.5
  • Draga
    Hey Mistah Programmer...you surely are a poor man. Intelligent-MAYBE! But a CHEAP character...and THAT`S for sure. You don´t understand that there are people WITHOUT ANY programin skills? Oh, or maybe those people don´t have the rights to run this Java 1.6??? Your whole video is for programmer´s only. Try “touch ~/.profile”...where? HOW??? I did all thing´s but no TextEdit window appeared...poor you.
  • allison
    the video is so small and jumpy i cant follow the instructions! is there a transcript or tutorial written out to follow?
  • allison
    ive used the touch then open and get a blank window. many people have also but i havent seen an answer for it.
    does this blank window for us to put in that export path thing JT was talking about?
    is it blank because we are making a new profile that your computer had already?
  • allison
    im giving up, maybe i dont need what ever it was i was needing to get this working for anyways! why doesnt apple just support 32 bit!? ive tried and retried... i put the path to the bin in the blank text file, ive tried theexport path suggestion in terminal. but still stuck in 1.5. if you figure an easier way to do it please post it. im running 10.5.8 32bit. thanks!
  • Hi Allison, have you tried downloading and installing the latest Java from the Apple site? Here's a link.
  • Simon
    how do you pull up that matrix window?
  • allison
    thanks but this is what i found...
    This release of J2SE 5.0 and J2SE 1.4.2 supports all Intel and PowerPC-based Macs.
    Java SE 6 is available on 64-bit, Intel-based Macs only.
    so i guess im out of the loop i only have 32-bit intel. couldnt find if when plans to make a 6 for the rest of us.
  • Simon
    ok i got my terminal to open but it doesnt open with the applications/textedit thing. all it says is

    Last login: Tue Sep 15 14:36:47 on ttyp1
    Welcome to Darwin!
    simon-kildays-computer:~ simonkilday$

    where do i go from here? thanks
  • Simon
    ok when i do the open applications/text edit it tells me no such file exists...
  • it's not working for me
    i clicked on the link & put in the username & password
    then it said i had to try again
    i tried it about 10 times!
    Help with the password & username!
  • Why can't i log into the website?!
    I tried it about a million timess!
  • Trice - which site are you referring to, the one for SoyLatte or the Apple Developer site? I recommend downloading the latest version of Java from the Apple Developer site rather than using SoyLatte.
  • danny
    i had just one question i am running version 10.5.8 on a imac g4 power pc can i install java 1.6 on this machine with soy? and if i could are the steps still the same thank you for having the hart for helping all of us headless chickens.
  • Rolan
    Hey, I opened the .profile but its empty.
    What do i do?!
  • Izumal
    This may seem like a stupid question, but I am VERY new to this. Anyway, I know that I have to make the .profile file myself, but how do I do this? I can make the empty text file, but I don't know how to make it usable once it exists.
  • Naaman
    I had a different filename where PATH needed to be set. Mine was under ~/.bash_login

    Just in case anyone was struggling...
  • Blatte
    I don't think the hidden folder ".profile" exist on my computer. Could there be another name for it? I have a Mac OSX 10.4.11
  • azucaquest
    No .profile no .bash_profile. I´m working on Leopard 10.5.5 (Hackintosh, I can´t upgrade the system). Please Help!
  • azucaquest
    No .profile no .bash_profile. I´m working on Leopard 10.5.5 (Hackintosh->I can´t update). Please give some help!
  • Isaac
    I got the following error:

    isaac-leans-macbook-pro:~ isaaclean$ open -e ~/.profile
    The file /Users/isaaclean/.profile does not exist.

    Please advise! Thanks!
  • david
    hey mate,
    i know how painful this could be; a bunch of computer idiots probably asking really simple questions, however:

    If i type open /Applications/TextEdit.app ~/.profile
    open /Applications/TextEdit.app -/.profile
    open ~/.profile or open -/.profile

    Its says that no such application exists. So i read alot of other peoples comments and did this

    iMacG5:~ david$ touch ~/.bash_profile
    iMacG5:~ david$ open ~/.bash_profile

    its opens up text edit, but my text edit is completely blank so i cannot follow the rest of the video. Someone else asked this question but the instruction on how to fix the problem was too complicated for me.
    Can you explain to me what to do once my terminal opens up the blank text edit?
  • Ani
    Hi, i was able to change the path using this:
    export PATH=/Applications/soylatte16-1.0.3/bin:$PATH

    also, when i echo $PATH, i get this:
    /Applications/soylatte16-1.0.3/bin:/bin:/sbin:/usr/bin:/usr/sbin

    java -version displays this:
    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)

    however when i open a new bash window and check the java version, i still get:
    java version "1.5.0_19"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
    Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)

    Also i cannot launch applications that need JAVA 1.6
  • Adam
    try .bash_profile or .bashrc
  • Travis
    I'm stuck @ this point:
    Hooker-Nation-Computer:~ travishooker$ echo $PATH
    /bin:/sbin:/usr/bin:/usr/sbin
    Hooker-Nation-Computer:~ travishooker$ open /Applications/Textedit.app -/.profile
    2009-12-03 14:53:56.454 open[577] No such file: /Users/travishooker/-/.profile
    Any ideas?
  • Travis
    Ok, I was able to get everything done (thanks to J.T.'s post thank you very much J.T.) but when I check java version I still get:
    java version "1.5.0_19"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-306)
    Java HotSpot(TM) Client VM (build 1.5.0_19-138, mixed mode, sharing)
    I am running 10.4.11 O.S. on a intel Core Duo MacBook (first gen., not intel core 2 Duo) Is it something to do with my processor or O.S.?
  • beamoscrilla
    Last login: Mon Dec 7 10:55:18 on ttyp1
    Welcome to Darwin!
    -bash: export: `:YOURPATHHERE:YOURPATHHERE:/bin:/sbin:/usr/bin:/usr/sbin': not a valid identifier
    brandon-morgans-computer:~ brandonmorgan$ echo$PATH
    -bash: echo/Users/brandonmorgan/Desktop/soylatte16-i386-1.0.3/bin/: No such file or directory
    brandon-morgans-computer:~ brandonmorgan$



    what happened? haha. I googled mac $PATH variable before watching the instructional video. Went to a web page. copied, pasted, went back to your page and set in on the vid. I might have jumped a few steps and pasted things where they didn't belong. Is there any hope to run 1.6 for me now?
  • chem.eng
    hey robert,
    ive done everything (USING 2 TERMINAL APPS :P the original one and xterm)
    and FINALLY got the wanted result:
    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) Server VM (build 1.6.0_03-p3-landonf_19_aug_2008_14_55-b00, mixed mode)

    BUT.. still can't run a certain application that requires java 1.6 :(
    it tells me that I still have java 1.5 and java 1.6 isn't installed :(
    I run mac os x 10.4.11
    u think u can help me with this :/ ??
  • Hi Chem,

    I'm on Mac 10.6.2 with no hope of turning back, so hopefully someone that has your same version can help you here in the comments. Frankly, past getting Java installed on your Mac I'm not much help as we're a Rails shop and have limited exposure to Java apps. If you do find a solution please post it here.
  • cat
    Hi Chem.eng

    Just like you, i finally got the wanted result but.... got the self problem with my app..... if you resolved the problem, tell me !

    tks a lot!!
  • Pat
    Using OSX 10.4.11. I see there were numerous postings with the same problem, that has yet to be answered. The system was unable to locate the profile file and in creating a bash_profile, the file comes up blank. If you merely paste the path, that is the only thing in the file. Please be clear and specific as to what the solution is, and what is to be included in this bash_profile. Thanks
  • R.
    hi, i download soylatte16-i386-1.0.3.tar.bz2 for my apple mac 10.4.11
    followed all the instructions untill the terminal bash, you said to type in echo $PATH
    i did that but it doesnt come up with what you said it should.
    it comes up with /bin:/sbin:/usr/bin:/usr/sbin
    so a carried on by typing in the command, open /Applications/TextEdit.app -/.profile
    it then said open[1448] No Such File: /Users/RobynX/-/.profile

    why is this not working, and what should i do?
  • DONNA
    IAM HAVING PROBLEMS ALL I GET IS AN ERROR 25099 UNZIPPING FILES FAILED THAT SUCKS IAM TRYING USE MY FROSWIRE CAN SOMEONE HELP ME !!!!!!
  • kevinjaques
    I appreciate your attempt to help, but I think it did more harm than good. You should add a bold note that with X.5 and up, users can just choose the version with "Java Preferences.app" if they are up to date,. You might include a link to the X.5 update that added 1.6. Also, it would be helpful to explain that JDK is different than the runtime version, and that version 1.6 IS referred to as version 6.

    I added the path, no problem, but before I stumbled upon "Java Preferences.app", my system insisted on preferring the "/usr/bin" version of java, so the whole thing failed for me.

    There are also several minor things which are misleading/confusing (the idiosyncratic name of your Terminal program, using contextual menus to cut and paste, referring to "Apple-s" instead of command-s, assuming that people have a hidden profile file (why not just add the path with the login script for their preferred shell?), unnecessarily using the path name to TextEdit (at least it is unnecessary for me after I told the system to use TextEdit for such files).
  • Thank you for the exhaustive feedback Kevin. I did this tutorial a long time ago and should update it. Thank you for letting me know how I can make it more useful, especially for the less technical readers.
  • Kevin Jaques
    Further to my last, it would be helpful to mention the "whereis java" command for the Terminal, so one can see the path name which the system is using to run the java command. Obviously, if that is not the path to soylatte, then soylatte is not being used.
blog comments powered by Disqus

Previous post:

Next post: