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.


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 08, 2008 at 09:37 PM 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 08, 2008 at 09:51 PM 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 09, 2008 at 11:29 PM 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 12:22 PM PDT #

:-), funny James. I guess I don't see it that way.

Posted by Geertjan on June 23, 2008 at 04: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 02:07 AM PDT #

Really, to me it is SWT vs. Swing.

Posted by Geertjan on August 10, 2008 at 02: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 03: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:

Posted by Geertjan on August 10, 2008 at 03: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 17, 2008 at 10:17 PM 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 03:41 AM PDT #

I am a beginner and so can you put this as a tutorial or something as I have no idea as how to setup an eclipse project to this.

May be if you can provide the final eclipse project?

Posted by guest on April 24, 2013 at 10:30 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« December 2016