Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I want to set some flags or CLI arguments for running my NB RCP/Platform based application (such as disable assertions). How do I do that?

0
Posted

I want to set some flags or CLI arguments for running my NB RCP/Platform based application (such as disable assertions). How do I do that?

0

To disable assertions or set some other VM property for your application, there are two places to pay attention to. First, $APP_HOME/etc/*.conf in your distribution should set things for users of your application – do this for things that should be set for any user. You also will probably want to test these settings – and *.conf is not going to be used when you launch your application by running your project from Ant (nor the NetBeans IDE). So to handle this, you can set any of the properties documented in $NB_HOME/harness/README. For example, to disable assertions when testing your application from the IDE, edit your module suite’s nbproject/project.properties to include run.args.extra=-J-da or similar. See $NB_HOME/harness/README in your copy of NetBeans for the full list of properties that affect how NetBeans-based-applications are run when developing them in the IDE. Applies to: NetBeans 6.5 What information is available about threading in the platform? Generally speaking, you will

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123