best program method for Java on Mac

Discussion in 'Mac Programming' started by askthedust, Aug 27, 2009.

  1. askthedust macrumors regular

    askthedust

    Joined:
    Jan 17, 2003
    Location:
    enlightenment
    #1
    Beginning my java classes in two weeks. What is the best Java editor with real sense encoding for the mac?

    Any other tips and tricks are appreciated.
     
  2. rowsdower macrumors 6502

    Joined:
    Jun 2, 2009
    #2
    I think most people would recommend Eclipse or NetBeans. Xcode has some Java support but that is not its focus.
     
  3. Zortrium macrumors 6502

    Joined:
    Jun 23, 2003
    #3
    For beginners? A command-line editor. No reason to touch an IDE like Eclipse or Xcode right off the bat. If you really need a GUI, a clean, simple Java IDE is BlueJ.

    If you're already familiar with programming, then a full-blown IDE is probably okay (Eclipse is my favorite for Java).
     
  4. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #4
    If you do use BlueJ, don't use System.exit().

    I tend to agree that a command-line editor is always the right place to start... but in this case it's rather difficult, because Java's libraries are so vast that I find myself completely hamstrung not having code completion available.

    I'd say that you should practice using a text editor to write a few simple classes, and learn to compile and run them from the command line. At least get a feel for the compiler, the errors it outputs, etc. Then move on to an IDE. I use Eclipse, and have adjusted to its quirks... but NetBeans is pretty nice as well. When i was in school i used JBuilder, but i don't think it's free and I haven't used it in a number of years, so i can't attest to its current quality.

    -Lee
     
  5. Wowzera macrumors 6502a

    Joined:
    Oct 14, 2008
    Location:
    Brazil
    #5
    I would tell the OP to try do not use the Java libraries if there's a way to do it without them :p
     
  6. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #6
    Code:
    public class HelloWorld {
      public static void main(String[] args) {
        System.out.println("Hello, World!");
      }
    }
    
    Ah, darn. Already used some libraries. =)

    -Lee
     
  7. xlii macrumors 68000

    xlii

    Joined:
    Sep 19, 2006
    Location:
    Millis, Massachusetts
    #7
    Interesting... I'm doing a java online course using bluej and .isEmpty() doesn't work. Not just me, the other mac users have the same error. The windows users (using bluej) don't get this error. Their code is running error free.
     
  8. macsmurf macrumors 65816

    macsmurf

    Joined:
    Aug 3, 2007
    #8
  9. macsmurf macrumors 65816

    macsmurf

    Joined:
    Aug 3, 2007
    #9
    I prefer IntelliJ Idea but I agree that in a beginning Java course a simple editor is probably better.
     
  10. xlii macrumors 68000

    xlii

    Joined:
    Sep 19, 2006
    Location:
    Millis, Massachusetts
    #10
  11. pcornwell macrumors newbie

    Joined:
    Aug 11, 2008
    #11
    Eclipse

    Just go to eclipse.org - its not hard - its a basis for most of the industry standard tools and it'll do everything you need. Don't bother with toy IDEs, they are not worth the effort - just go straight to the main event.
     
  12. DJTHEFUNNY macrumors member

    Joined:
    Aug 2, 2009
  13. AlmostThere macrumors 6502a

    #13
    Wait two weeks, see what they use in your class and then use that. Most Java IDEs are available on every mainstream platform and using the same as everybody else will make life easier.

    FWIW, IntelliJ, but the cost reflects that.
     
  14. Cinder6 macrumors 6502

    Cinder6

    Joined:
    Jul 9, 2009
    #14
    I was about to say my first Java class used BlueJ, but that was my first college Java class (and I can't remember what we used in high school). Anyways, I hated BlueJ, even if it had a couple cool visualization features. Eclipse is excellent, though, and I almost never say that about IDEs.

    While I use command line editors (vim) for almost everything, I can't stand to do use them for Java. Not sure why, but the size of the library does make code completion almost essential. In a beginning class, though, I wouldn't be surprised if you didn't use the library classes a whole lot, and learned more about how to do stuff yourself.
     
  15. pcornwell macrumors newbie

    Joined:
    Aug 11, 2008
    #15
    I do ... I'm a computer science professor and I teach it to corporate clients
     
  16. ManiG macrumors member

    Joined:
    Aug 11, 2009
    #16
    My preferred dev environment on mac is XEmacs running on X11. Old habits die hard. :)

    I recommend you try various IDE's and text editors, and stick with whichever suits you. It also depends on the project (i.e. a pure mac project, normally you want to use Xcode, like Visual Studio for a pure windows project).
     
  17. DJTHEFUNNY macrumors member

    Joined:
    Aug 2, 2009
    #17
    Well it would be awesome to get some tips/advice/lessons. i really want to become a developer!
     
  18. iShater macrumors 604

    iShater

    Joined:
    Aug 13, 2002
    Location:
    Chicagoland
    #18
    Get a good book (Head First Java for example) and make sure to do the exercises. Also look into online tutorials and if you have the time and $ a class a local college.
     
  19. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #19
    The Sun (Oracle) website has some pretty good documentation. Some of it does assume you already know how to program but if you start here:

    http://java.sun.com/new2java/gettingstarted.jsp

    you should be okay.
     
  20. stompy macrumors regular

    Joined:
    Jul 22, 2002
    #20
    IntellJ now has both a paid and a free "communitiy edition." I use the paid edition daily, but have installed the free version to see what it's like.

    The free version would work fine for you.

    http://www.jetbrains.com/idea/index.html
     

Share This Page