Friday, October 20, 2006

"There and back again" - NetBeans to Eclipse

As background to this post. I have been working with NetBeans since it was Forte for Java CE. So I am pretty much used to NetBeans.

Eclipse 3.1 was not compelling enough to switch from NetBeans. NetBeans 5.0 was a huge step, and Eclipse 3.1 was not the best thing to make the change. Eclipse 3.2 has one of the most tempting features fot the switch - Java Editor - witch is superbe. Code completion blows away any other editor(comapring IDEA, Eclipse and NetBeans).
Eclipse team is very proud of their incremental compiler - I personally see no pluses in it, since if the code is bloken incremental or non incremental compiler - both will not help in that case. Auto compile is not a bad thing,though.

In my experience everything other than Eclipse RCP and JDT is not as good as its presented. For example WST is just horrible. JSP editing is nowhere close to NetBeans one.

So the only logical thing is to mix NetBeans and Eclipse for web development(or use some of the commercial tools, but JSP formatting is still horrible and unreadable).

If anyone is wondering how to mix NetBeans and Eclipse here is how:
1. Create Eclipse workspace, and the project that you need
2. Create NetBeans project, and note NetBeans directory structure.
3. Ajust your Eclipse directory structure to match NetBeans one.
4. NetBeans keeps compiled files in a different directory(build), so in Eclipse set the output directory to build
And basically youre done.

NetBeans uses 100% Ant builds so you get pacakaged WAR EAR or JAR files, with no additional actions.
NetBeans is gaining on Eclipse quite fast, so I am very excited. The 2 OSS IDEs that complement each other pretty good.

2 comments:

Roman said...

Him, check out what's coming in NetBeans 6.0 editor:

http://wiki.netbeans.info/wiki/view/Java_EditorUsersGuide

JAlexoid said...

http://wiki.netbeans.info/wiki/view/Java_EditorUsersGuide
- I know that, thats because I wrote the post.