Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Eclipse and Netbeans if I want to use only the Java in it? [closed]

People also ask

Which is better Eclipse or NetBeans for Java?

NetBeans has built-in drivers for MySQL and Oracle. Eclipse IDE requires M2Eclipse download and integration for Maven support. NetBeans has better Maven support compared to Eclipse. Eclipse IDE takes less time opening itself compared to NetBeans IDE.

Can I use Eclipse instead of NetBeans?

NetBeans and Eclipse Java IDEs both offer excellent debugging capabilities, open-source coding, plugins, and extensions. NetBeans is easier to learn and has more features out of the box than Eclipse, but Eclipse can handle larger projects and is more customizable.

Is Java Eclipse and NetBeans same?

Eclipse and Netbeans are both free, open source IDEs. Both support multiple languages, but are especially well-suited for Java. The same basic functionality is available in both Eclipse and NetBeans. But each one has its pros and cons.

Is NetBeans different from Java?

NetBeans is an open-source, free Java IDE with a modular architecture. It has a multi-language editor, debugger, profiler, versioning control, and developer collaboration. It also supports the development of other languages like PHP and C++. It integrates all the functionality of Java.


What is the difference between Coke and Pepsi?

Ok, it's not really that similar, but a lot of the differences are in qualitative ways. Speaking of Netbeans 6.1 and 6.5:

  • Netbeans has a very different UI and workflow. There are no perspectives, but toolbars and such will auto appear/hide as needed (i.e. debugging). Build process is different. Managing projects is different.

  • Netbeans focuses on a smooth, integrated experience sometimes at the expense of features. The Profiler is fully integrated into the editor (context menu's let you quickly manipulate the profiler), but is lacking some featuers of Eclipse profilers.

  • Netbeans has a tightly integrated JSP/Servlet/JSF development environment. The whole workflow connects together from development, debugging, deployment. This is more of a "feel" than anything else.

  • Netbeans editor is missing several Eclipse features. Spell check being one prominent one. Quick complete (Ctrl-K, Ctrl-J) is an underused Netbeans feature. Snippets being another (though they have an auto-complete template which fills a different, but similar niche).

  • Less choice. If you don't like one of the included tools, it's unlikely you will find a good alternative plug-in.

  • Matisse. Eclipse GUI editors have started to catch up, but they are simply no comparison to Matisse. Superficially, they seem equivalent...

  • <sarcasm>Your friends will make fun of you.</sarcasm>


Maybe when you work with several (many) projects at the same time I would prefer Eclipse (Workspace organization is great for that). Interface seems to respond better (at least vs old versions of NetBeans such as 5.0) in Eclipse too. This is related to SWT vs Swing performance issues, though the differences are no so big as on Java 1.4 days.

However I would say Netbeans is a better integrated IDE, you launch/debug applications the same way no matter you are developing a desktop application or a JSP/Servlet web application. Building relies entirely (since version 4 I think) on Ant, and Netbeans launches/adds ant target transparently. Ant in Eclipse has the same level of integration as a pair of bull horns sticked to the front of your car.

Eclipse is more extensible than Netbeans but the last is more uniform.


I think it will be mostly culture shock. Things in different places. Features named different things.

If you really want to give Netbeans a try force yourself to use it for a month. It will suck for the first day or so as none of the shortcuts will be the same, various idioms will be different etc.

At the end of the month you will be competent enough in it that these things should have gone away and you can objectively decide if you like it more. (I'm currently trying this with IntelliJ btw. Current state, confused ;-)


Why not use both ?

I like netbeans Profiling tools much better than eclipse's as they work straight out of the box on Linux.

Eclipse I use for normal editing, the mylin tools really help you work in a task oriented way.

Netbeans supports the import of eclipse projects so you can go along with both IDE's working on a single project if you need to.


Sad to say, you also quickly discover that Netbeans is far more unstable than Eclipse. I give a serious try (more than one month ;)) to 6.1 and that was the more noticeable "feature" for me. Sometimes, a simple mouvement of the mouse is enough to kill the application. They made huge progress since 5.x, but imho, Netbeans is still far behind Eclipse.


I've been recently trying Netbeans 6.5 and have found/understand:

  • Netbeans has better new language support (as it is the "reference" IDE/implementation for new technologies)
  • Similar to above, but Eclipse still doesn't have 1-1 generic compatibility with sun's javac or an option to "make it compatible" (Eclipse is too smart about inferring types - correct, but no good if your build machine can't make it)
  • No immediate need for plugins - subversion (and Mercurial?) are built in, and since it integrates nicely with ant, I find less need for Ivy etc plugins.
  • Multiple classpaths - you have compile time, run time, test compile time and test run-time. This means if you add something as a test dependency (that your build script knows about), it will not be visible to the main code. Again, very good for IDE / build server consistency.

  • Marker navigation is through the task list rather than through the current file.

  • Netbeans is way slower in updating markers (presumably due to ant compilation rather than eclipse's triple compiler). This causes huge problems when trying to quickly navigate and fix task markers.

The basic workflow of Netbeans is much smoother and more reliable; little things like ^X to cut current line work properly. It's also simple enough to understand what it's doing.

otoh, Eclipse has the emacs quality of being a platform in its own right; some people swear by that.

Edit: I've changed my mind, on coming across HyperAssist: https://bugs.eclipse.org/bugs/show_bug.cgi?id=159157

Quite simply, the HyperAssist plugin fills in the missing piece that kept Eclipse from the gold medal; with it, Eclipse is the best IDE I've ever used.