How to install Java in my Mac?

Discussion in 'Mac Apps and Mac App Store' started by Hani1414, Jan 21, 2010.

  1. Hani1414 macrumors newbie

    Joined:
    Jan 21, 2010
    #1
    hi everyone!
    im glad to enroll with u guys and hope benefit and be beneficial ?

    my problem is that i wanna run java codes from my mac and i have read that the mac Computers are already have it? is that true or a rumor?

    if so, describe how to run the codes by the terminal

    thanks :)
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    All Macs ship with a java runtime on them. You can compile and run java using the normal commands: javac to compile and java to execute.
     
  3. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #3
    Yup you already have java on your Mac :)

    Go nuts now :D
     
  4. Hani1414 thread starter macrumors newbie

    Joined:
    Jan 21, 2010
    #4
    thanks guys for your responses but hen i save the code in the EditText prog it dosent save as java extension.
    how could i save it as that?
     
  5. rerelease macrumors regular

    Joined:
    Jun 8, 2009
    Location:
    eesti
    #5
    Press command shift T to make it plain text, then save the file and use whichever extension you want.
     
  6. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #6
    I recommend using text wrangler (free), BBEDIT (not free) if you plan on doing any java development. Both are more powerful text editor's then the supplied text edit program.

    There's also textamte I like that a lot but it has not see any upgrades in years and I'm not sure if any activity is going on with that. While a capable text editor the cost is such that you may not want to throw your money away at a product that is no longer being developed.
     
  7. Hani1414 thread starter macrumors newbie

    Joined:
    Jan 21, 2010
    #7
    i wanna thank all of u guys
    i used the text wrangler n finally worked with me :) .
    Seya
     

Share This Page