Including NBM Files in NetBeans RCP Distros

DZone 's Guide to

Including NBM Files in NetBeans RCP Distros

· Java Zone ·
Free Resource
I have an app and I'd like to include an NBM file (in this case, the Space Invaders game) in the distribution to the end user. But I don't have the sources of the NBM. I switch to the Files window and this is the structure of the app:

I build the app. Now I have a build folder, as you can see here:

I create a new folder within the "cluster" folder. The folder is named "update/download". Into that folder I put the NBM file:

Now I run the app, i.e., still in development mode. I see the Updater dialog when the app starts. I can see the module is installed because, in this case, I can play the Space Invaders game.

When I look in my app folder structure in the Files window, I can see that the NBM file has been unpacked in my development user directory, with all requisite files having been created automatically:

So, now, when I create the ZIP distro, I see my NBM file is included, just like any other module that I created myself, even though I don't have the sources of the Space Invaders game:

So now you can head off to the NetBeans Plugin Portal and include any NBMs you find there in your distro!



Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}