update/download

Here's a cool thing I've been meaning to blog about for a while. In your NetBeans IDE installation directory, within one of your cluster folders, i.e, a folder that contains NetBeans modules (e.g., "ide" or "platform" or "java" or any other cluster from your own application), create a subfolder named "update", containing a folder named "download". Or just look at this picture:

Now, get an NBM file from somewhere, e.g., the Space Invaders plugin, which is here:

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=33788

Put the NBM file into the folder you created. I.e., now you'll have this:

Now start up NetBeans IDE. You'll see the updater dialog appear and that the folders you created above vanish. The plugin is installed, it is now found in the NetBeans IDE user directory, instead of the installation directory. And then you can play space invaders or whatever you installed.

I.e., the above is a quick trick to install plugins into a NetBeans Platform application, without needing a Plugin Manager or anything else. I learned about this from Ayman Habib in this interview, where he says: "One tip that I found useful (especially because we do not expose the Plugin Manager as of yet) is that we can distribute modules as NBM files and that they get installed automatically if the users put those NBM files in a directory (update/download/) below our “cluster” directory. I have used this a few times to deliver special purpose modules and was impressed by how smoothly that went."

Comments:

Could this trick be used to make updates work on java webstarted plateform applications ?

Posted by rjolly on December 28, 2010 at 11:35 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

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.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
21
22
23
24
25
26
27
28
29
30
   
       
Today