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

谁说我不能喝 提交于 2019-11-27 13:30:57

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.
rwallace

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.

The build system is different. Eclipse has an internal build mechanism whilst NetBeans relies on ant.

The popular Mylyn productivity tool is a key feature that is only available in Eclipse.

A Joel on Software forum participant wrote: "I've been drawn to Eclipse by a few features, notably: Mylyn, and would like to try it out." http://discuss.joelonsoftware.com/default.asp?joel.3.703449

Mylyn provides integrated access to your bug and issue tracker. When you work on a bug or issue, Mylyn focuses the Eclipse UI on only the code that is relevant for the task at hand.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!