Sunday June 08, 2008
Running NetBeans from Eclipse
I made some progress with my Maven-based IDE agnosticism: I am now able to launch NetBeans Platform applications from Eclipse. To do so, I set this goal as a new Eclipse launch configuration for cleaning/building the suite:
clean install nbm:cluster
And I created another new launch configuration for running it:
nbm:cluster nbm:run-platform
Both were simply copied from the Actions tab in NetBeans, from the Maven application's Project Properties dialog box. Then I simply selected my launch configuration as needed, from the handy dropdown in Eclipse (of which I have a NetBeans version, described elsewhere in this blog, that I need to upload to the Plugin Portal soon).
The first time I saw the NetBeans splash screen appear in Eclipse was pretty cool:
And here's the result, a simple NetBeans Platform application that integrates with Flickr, created (mostly) in Eclipse:
The only thing that Eclipse needs is a bunch of wizards, templates, and code generators... and then anyone could use it for creating NetBeans Platform applications.
Jun 08 2008, 11:49:40 AM PDT Permalink
Every IDE with basic ant or maven integration can. But what the point of developing Swing NB-based application from SWT-based eclipse?...
Posted by Aekold on June 09, 2008 at 04:37 AM PDT #
I don't know what the point is. I'm just saying that it is possible. Maybe someone feels more comfortable with Eclipse than with NetBeans. In that case, it is nice to know that you can develop NetBeans Platform applications in Eclipse too, via Maven.
Posted by Geertjan on June 09, 2008 at 04:51 AM PDT #
>But what the point of developing Swing NB-based
>application from SWT-based eclipse?
That Eclipse is based on SWT is irrelevant. A lot of organizations build Swing-based user interfaces using Eclipse. Eclipse is also (mostly) written in Java, but you can use it to write PHP, C/C++, Perl, ...
Besides, if you're forced to build a Swing NB-based application (if, for example, somebody was holding your children hostage), you may as well do it with a good development environment :-)
Posted by Wayne Beaton on June 10, 2008 at 06:29 AM PDT #
It is kinda cool there, but it doesn't leave you feeling a little, you know, dirty?? You know that is kinda like a Boston Red Sox fan dating a Yankee fan or something.. Its just not right!
Posted by James E. Ervin on June 16, 2008 at 07:22 PM PDT #
:-), funny James. I guess I don't see it that way.
Posted by Geertjan on June 23, 2008 at 11:10 PM PDT #
Ok, lets get to the point, which is a better RCP, can you state some development feature differences and explian the underlaying architecture of them both in Eclipse and your cool netbeans,
Its really Sphere RCP vs Cube RCP, not swt vs swing
Posted by InnovationHero on August 10, 2008 at 09:07 AM PDT #
Really, to me it is SWT vs. Swing.
Posted by Geertjan on August 10, 2008 at 09:11 AM PDT #
ya, but you work for Sun, you don't have much of a choice for picking up eclipse over nb :)
which one is a better rcp, as for startups its best to invest time on a good platform and go along with its skillset rather than to switch to another in the middle of the road, netbeans got a lot of marketing muscles but is it better ?
I want to find out, and I hope experts from IBM and Sun wouldn't have much insecurity about going into this :D
Posted by InnovationHero on August 10, 2008 at 10:04 AM PDT #
Since you don't trust my opinions because I work for Sun, you shouldn't be asking me these questions in my blog. Anyway, this should help you:
http://blogs.sun.com/geertjan/entry/eclipse_platform_vs_netbeans_platform
Posted by Geertjan on August 10, 2008 at 10:06 AM PDT #
do i get it right, you don't need netbeans IDE at all ?
but AFAISee profiles.xml needs path to the netbeans ...
did you manage to workaround it ?
Posted by przem on August 18, 2008 at 05:17 AM PDT #
I think this is fantastic; our organization builds its client application in NB but the server is developed in Eclipse. Something like this makes RMI testing a breeze since you don't have to launch the monster that is NB IDE.
Posted by faulkner on September 18, 2008 at 10:41 AM PDT #


