Java IDE for OS X

Discussion in 'Mac Programming' started by geodome, Jun 23, 2006.

  1. macrumors member

    geodome

    Joined:
    Jun 22, 2006
    Location:
    London, UK
    #1
    Hi

    I am new to Macs in general. I just bought my first Mac (it's a Macbook) after being thoroughly sick of crashes and viral infection of Microsoft Windows. I am also an avid Java programmer. What Java IDEs are available on the Mac Platform?

    What are the pros and cons of Xcode2?

    How does Eclipse compare to Xcode2?
     
  2. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    There are quite a few, the one most people here swear by is Eclipse which I believe is also available for Windows as well as OS X, XCode isn't bad though (I actually perfer it slightly but haven't used eclipse much, most people prefer Eclipse)
     
  3. thread starter macrumors member

    geodome

    Joined:
    Jun 22, 2006
    Location:
    London, UK
    #3
    I have been using Microsoft Visual J++

    Switching to Mac is a very very new thing to me
     
  4. jsw
    Moderator emeritus

    jsw

    Joined:
    Mar 16, 2004
    Location:
    Andover, MA
    #4
    Another vote for Eclipse and against Xcode for Java development. Xcode is great for Objective-C, but it more or less sucks for Java development. Eclipse isn't the best IDE out there, but it's the best free one (IMO) and the cross-platform support and plugins make it a winner in my book.

    Note that you'll need a 3.2 version (not officially released yet, but stable) for an Intel Mac.
     
  5. macrumors 68000

    savar

    Joined:
    Jun 6, 2003
    Location:
    District of Columbia
    #5
    I don't have any problems with XCode2. I use Eclipse when I develop on Windows, but I never saw any need to get it for OS X when I already have XCode (not that XCode is better than Eclipse, I'm just saying its good enough). Just try both and see which one you like better.
     
  6. macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #6
  7. macrumors regular

    x704

    Joined:
    Apr 15, 2006
    #7
    I'll put in a good word for netbeans, some people say it's really slow when compared to other IDEs. But I like it because of the java doc that pops up while I am programming because I am not good enough to know exactly what method I want.

    I'll say this up front, I have not tried any other IDEs just to let you know.
     
  8. macrumors regular

    Joined:
    Jun 11, 2006
    #8
    I'll also place a plug in here for eclipse.

    Specifically:

    http://myeclipseide.com

    They pre-bundle a lot of plugins for eclipse, and package it up. You can purchase it for a $25/year license I believe.
     
  9. thread starter macrumors member

    geodome

    Joined:
    Jun 22, 2006
    Location:
    London, UK
    #9
  10. macrumors 65816

    MarkCollette

    Joined:
    Mar 6, 2003
    Location:
    Calgary, Canada
    #10
    That's what I use at work, and it kicks ass. There's a free trial you can use to spin its wheels.
     
  11. thread starter macrumors member

    geodome

    Joined:
    Jun 22, 2006
    Location:
    London, UK
    #11
    I am new to the OS X as well. I think I will use Eclipse over IntelliJ given that SWT is part of the Eclipse Development Platform. I really like the SQL plugin for the IntelliJ IDEA. Btw does Eclipse support HTML/CSS/Javascript/PHP development?

    The Eclipse website states that all I need is JRE to run Eclipse. However, the java compiler is not part of JRE. Is the compiler part of the Eclipse 3.1.2 package? Is the SWT package part of the Eclipse package as well? Am I suppose to download each package individually.

    As far as I know, Mac OS X comes with JDK 1.3. How does this affect my Eclipse installation? Btw How can I upgrade the JDK to the latest?

    Ideally, I want to have the latest Java compiler and JRE installed on my Macbook, usinf Eclipse. The SWT package is so much better than the Java Swing and AWT. LOL. I wanna use to SWT package, which is not available for IntelliJ IDEA.
     
  12. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #12

    You can get the latest JDK by becoming a developer on apple's site (http://developer.apple.com, don't worry it's free!) then you can download lots of software including XCode and the latest version of the JDK
     
  13. jsw
    Moderator emeritus

    jsw

    Joined:
    Mar 16, 2004
    Location:
    Andover, MA
    #13
    Oh, it's a great app - just very expensive if you're buying it yourself. I loved the trial version but couldn't justify the cost personally, and work wouldn't buy it for me. :(
     
  14. macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #14
    One of the advantages of Eclipse is the enormous amount of plugin development going on. Take your pick from below.
    SQL plugins
    PHP plugins
    HTML etc plugins
    You can also install the Eclipse Visual Editor for building UIs. It's not as mature as Visual Studio or XCode2 but takes a lot of the work out of creating Java UIs.

    I can't remember exactly what comes with eclipse since I've always had a JDK installed before installing Eclipse. And I'm on the server development side so haven't actually had to create any GUIs, but I've played around with the Visual Editor plugin and it allows you to use SWT elements as well as Swing. As for updates and plugin installation, normally this is done via Help/Software Updates. You specify where to look for updates and new code and it downloads and installs them. Any plugin developer worth his salt will tell you exactly what to do for installation.

    Hmm, I'm pretty sure it now comes with JDK 1.5. I've done a couple of updates since I got my iMac, but I believe they were just incremental updates to 1.5. I think the default is JDK 1.4 though even if you have 1.5 installed ... it's been a while since I set up my Java environment, and I only had to do it once, and I'm sitting at work in front of my Linux machine, so can't be more specific.

    Although Eclipse is pretty large, it is free so you're not losing anything by installing it. I don't think anyone can tell you what's the best IDE for you. I normally use the command line for basic development environment setup (ie. crafting my build.xml file for easier integration into our automatic build tools) but use Eclipse for most of my actual development, especially for refactoring.
     
  15. macrumors 6502a

    Joined:
    Nov 24, 2005
    #15
    Eclipse is the best IDE imo, not just for Java but for anything, thanks to the amazing list of plugins for it.

    Another plus is the great support is has from IBM. Many large-scale companies, like the one I work for, use Eclipse IDE as their main development enviroment. So knowing Eclipse can be a big plus in your next job interview.
     
  16. macrumors 65816

    MacFan26

    Joined:
    Jan 8, 2003
    Location:
    San Jose, California
    #16
    I have to add my vote to Eclipse. I have tried to use XCode for Java before, but I always end up going right back to Eclipse. True that XCode of course is more "Mac-like" since it's Apple's own, but Eclipse was developed specifically for Java and it can be very frustrating to be without its features once you get used to them. One of the best things I'm attached to in Eclipse is Refactoring. It makes it so easy to change things, and is no match for basic find and replace. I have used XCode for Objective-C and it works well, especially since so much integration is used if you're building a graphical app in interface builder. Otherwise, I'll stick with Eclipse for Java.

    I have some info on my website (in my sig) under "Java info" that details how I installed and configured Java 5 with my Mac. It may be useful if anyone is having trouble.
     
  17. thread starter macrumors member

    geodome

    Joined:
    Jun 22, 2006
    Location:
    London, UK
    #17
    http://www.u.arizona.edu/~jt007/java.html

    Cool.. I think it is wonderful that you put it up online.
     
  18. thread starter macrumors member

    geodome

    Joined:
    Jun 22, 2006
    Location:
    London, UK
    #18
    You guys are great. Hehe.. installation was a ease. This is my first post on MacRumors from my new Macbook. It is so beautiful. :D
     
  19. macrumors 65816

    MacFan26

    Joined:
    Jan 8, 2003
    Location:
    San Jose, California
    #19
  20. thread starter macrumors member

    geodome

    Joined:
    Jun 22, 2006
    Location:
    London, UK
    #20
    Eclipse cannot start.

    Does this has to do with the recent OS X Update from Apple?
     
  21. macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #21
    What happens? How did you install it? How are you launching it?

    It needs to be launched from the same folder as all the rest of the supporting files.

    To install it I moved the eclipse folder into Applications, then attached the process (the file with the blue circle icon) to the dock.
     
  22. macrumors 6502

    Joined:
    May 12, 2003
    #22
    Are you using one of the 3.2 builds? Eclipse 3.1.x and before doesn't support the Intel architecture for Macs.
     
  23. thread starter macrumors member

    geodome

    Joined:
    Jun 22, 2006
    Location:
    London, UK
    #23
    I unzip the tar.gz file to obtain the Eclipse folder on the Desktop.

    Then I move the folder to the Application folder and set up the Eclipse icon in the dock. When I click the icon, I get an error message that reads "See the log file ...."
     
  24. macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #24
    I'm not sitting in front of my Mac at the moment so can't confirm this, but I believe log output is written to the Console. Can you see if there's any eclipse related statements in the Applications/Utilities/Console?
     
  25. thread starter macrumors member

    geodome

    Joined:
    Jun 22, 2006
    Location:
    London, UK
    #25
    The above quote is from Apple's Developer Site. I dowloaded Eclipse 3.1.2
     

Share This Page