Evaluating / Comparing NetBeans and Eclipse EE for Java EE development

Amit

Although we are ‘big’ Eclipse fans and have been using it for many years for everything (PHP/symfony, Java, XUL, HTML) and have even contributed plugins but we decided to evaluate NetBeans to see if it gives any extra features that might help/speed up development for our forth coming Java EE project.
Technologies we are going to use in our application are:

Preferred IDE requirements:

  • CVS integration
  • Integration with GlassFish – so that we don’t have to leave the IDE to deploy etc
  • Should support debugging of web application
  • Support for profiling
  • XML/JSP editor
  • Context sensitive help and auto completion for tags

We are comparing
NetBeans 6 Beta 1 and Eclipse 3.3 Java EE

Creating a new web project is pretty straight forward. Both IDEs create more or less same directory structure only difference being the location where Java source files are stored. Eclipse keeps them under src where as NetBeans keeps them under src/java.
Next thing I wanted to do was import (share) my project to CVS. Found it more user friendly in Eclipse although NetBeans was equally straight forward.

JSP/XML Editor
NetBeans editor is lot more advance and friendly.
Editing Web.xml in Eclipse
Editing web.xml in NetBeans

Other differences
– In Netbeans you don’t have to click on ‘fast views’ just mouse over brings the window.

– Can’t easily change destination of compiled class files in NetBeans. We wanted to try directory deployment feature of GlassFish so that we don’t have to create .war every time, this required us to compile and put the class files in WEB-INF/class folder. This setting is pretty straight forward in Eclipse whereas you have to change projects.properties file in NetBeans. (Or it was not easy to find how to change it via UI)

– One of the biggest inconveniences was not having auto import while writing Java Code. Eclipse will auto import a class if you use it (Ctrl+space) but in NetBeans you have to manually add imports. There is fix imports also but thats an extra step.

– Eclipse UI in general is more user friendly. As an example ‘output console’ had a title bar and then some tabs. Each of these tabs are (or at least look) like individual windows with separate x (close) buttons. Its very natural to double click on the title to maximize it, hence you would try to double click on title ‘GlassFish v2’ but it will not do anything. You will have to double click on the bar above it ‘Output’. This is understandable but not ‘really’ as expected. On the other hand eclipse is pretty straight forward.
NetBeans console windowEclipse console window

– Eclipse kept on crashing (giving out of memory error) on my colleague’s laptop which has 1GB RAM, this happens when he tries to run GlassFish from Eclipse. Trying to run GF outside of Eclipse doesn’t crash it. This is actually a show stopper, or he needs to upgrade RAM

– I couldn’t figure out how to auto compile and auto deploy application on NetBeans. Every time you change a class file you need to ‘build’ and ‘run’ or ‘deploy’ on the other hand Eclipse will compile and deploy automatically on save. On the other hand auto deploying can also become a problem when application size grows. But this made it very smooth on Eclipse to build/test.

We also evaluated how to create a project so that it can be opened in both the IDEs so that we can either switch or let programmers choose whatever they want. There was no ‘huge’ difference of features or one IDE helping a LOT. On the other hand as we are comfortable with Eclipse shifting on NetBeans can be counter productive as we have to learn/get used to the new IDE. We know that we will need NetBeans for debugging and profiling but development will be faster with Eclipse using directory deploy and .reload feature of GlassFish.

about the author

Amit

  1. Fangzx

    November 18, 2007

    Thanks for the article! I have two question:
    1.How ‘.reload feature of GlassFish’ help development?
    2.you said: ‘auto deploying can also become a problem when application size grows’. Can we completely bypass this step as we do with Tomcat?

  2. Shyamal

    November 19, 2007

    1. Using the .reload function, it becomes very easy to redeploy the application on demand. See the blog article https://www.techjini.com/blog/2007/10/23/glassfish-auto-deployment-and-hot-deployment/

    2. Yes, we did it by not adding the application to the glassfih server registered with eclipse. We instead use the .reload file and we also store the application in an exploded directory format.

  3. ginkgo

    December 19, 2007

    when you launch the glassfish from the eclipse, maybe you use the eclipse 3.3.1, please know the 3.3.1 have some problem about the out of the memory, you should use the 3.3.1.1 edition.

  4. Samella Kennealy

    March 21, 2012

    I like what you guys are up too. Such intelligent work and reporting! Carry on the superb works guys I’ve incorporated you guys to my blogroll. I think it’ll improve the value of my website 🙂 London Girlfriends, 1a, Mathew Parker Street, London, SW1H 9NE, 028 9343 8121

  5. Ryan Tippett

    June 23, 2012

    Thank you for every other magnificent post. The place else may just anyone get that type of info in such an ideal method of writing? I’ve a presentation next week, and I am at the search for such info.

  6. Carmine Limas

    June 27, 2012

    Hi, i think that i saw you visited my weblog thus i came to “return the favor”.I’m trying to find things to enhance my website!I suppose its ok to use a few of your ideas!!

  7. custom football jerseys

    July 20, 2012

    How many Marxists does it decide on mess in a bulb? Probably none, the lighting bulb offers the seed of the company’s very own trend.

  8. flirt fans

    December 5, 2012

    “I like the design and style it really stands out”

  9. Olene

    March 17, 2013

    I’m extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it’s rare to see a great blog like this one nowadays..

  10. cars

    May 14, 2013

    Shopping for a new or used car can be a difficult process if you do not know what you are doing.

    By educating yourself about car shopping before you head to
    the dealership, you can make things easier for yourself.
    The following tips can help your next shopping trip be more enjoyable.

  11. car insurance premium calculator uk

    July 8, 2013

    Music started playing when I opened this site, so frustrating!