Beginning Java, help!

Discussion in 'Mac Programming' started by RaptorJesus, Aug 4, 2008.

  1. RaptorJesus macrumors newbie

    RaptorJesus

    Joined:
    Jul 14, 2008
    #1
    So I picked up "Head First: Java" and am trying to learn how to write it. What ive gathered so far is that Leopard has Java already installed on it, ok. Now what program should I write the code in, which compiler should I use? If Java is already installed on my computer, where is it? Ive looked in spotlight and the only viable options I find are Java Webstart, andJava Preferences... neither of which appear to be a compiler.

    Help!
     
  2. crazyiez macrumors newbie

    Joined:
    Apr 6, 2007
    #2
  3. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #3
    The most basic, from the terminal, is javac to compile and java to run.

    Java is one of the few languages I actually think is better to learn with an IDE than without, though. Netbeans is quite good. Eclipse takes some getting used it, but is good as well.

    -Lee
     
  4. lazydog macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #4
    You can also use Xcode for Java if you already have it installed. Xcode is okay for Java so long as you don't need to design a user interface.

    b e n
     
  5. italiano40 macrumors 65816

    italiano40

    Joined:
    Oct 7, 2007
    Location:
    NY
    #5
    Xcode is great for java, for a GUI you can hand code it in Xcode, but if you want to program for a mac you need to know Cocoa, Java does touch the surfaces as a programing language on a mac
     
  6. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #6
    I always hand-code my Java user interfaces anyway - though I think having the option to auto-design it is very nice, it's not something I'll use.

    That said, I add my vote for NetBeans - it's a great IDE. I used to use Eclipse but got fed up with some of its more annoying traits.
     
  7. alphaod macrumors Core

    alphaod

    Joined:
    Feb 9, 2008
    Location:
    NYC
  8. yeroen macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #8
    I'll parrot what I've said on these forums a thousand times, but you should spend some time learning how to program away from the IDE. That means emacs/vim/TextMate and compiling with gcj in the terminal.

    Don't ignore the Java IDE's however. For better or worse, the IDE is big part of Java 'culture'. In this case, I'll second the recommendation for NetBeans. I find it much cleaner than Eclipse. It also has some very nice inbuilt tutorials and documentation that will help you along as you learn.
     

Share This Page