run.args.extra=--branding visualvm

Today's question of the day concerns the situation where you start a NetBeans application from the IDE, instead of from the binary launcher in the application's bin folder. Bennie Vaessen, who was at my presentation at the NL-JUG conference recently, asked about that:

I noticed that in the first part of your presentation the instance of VisualVM itself was visible, together with its corresponding icon. However, when you were developing a new plugin, and VisualVM was started from within NetBeans IDE, it was NetBeans IDE's icon that was displayed, while I was expecting to see VisualVM's icon here too, because you're developing against the VisualVM instance of the platform. What am I missing here?

Not only the icon is affected, but also the splash screen and the text in the titlebar. The way to fix this is to add this line to either platform.properties or project.properties, of the NetBeans module that you're running from the IDE:

run.args.extra=--branding visualvm

Above, the branding token is set, which specifies the branding information that should be used when the selected platform is started. What would be even better, I think, would be that when you change the NetBeans Platform for a particular module, the platform.properties or project.properties file should be automatically updated with the above key/value combination.

Anyway, simply adding the branding token of the platform you're running against, in this case VisualVM, is enough to ensure that when the module is run from the IDE, which then causes the platform to start, the correct icon, titlebar, and splash screen will be displayed.

Comments:

hello! i am an amateur programmer.i just want to know how i can run a program without starting my netbeans ide.e.g like a calculator appillcation

Posted by ifetayo on May 05, 2009 at 12:51 AM PDT #

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
20
21
22
23
24
25
26
27
28
29
30
   
       
Today