Here you find the wrapper shell scripts to launch NetBeans under OptimizeIt
tools.  They work with OptimizeIt version 4.x.

Usage: instead of launching NetBeans using runide.sh with (optional) arguments
you prefix the command line with one of these scripts.  For example

    $ nbopt.sh ~/nbide/bin/runide.sh -userdir ~/myuserdir

Customization: the wrapper scripts look for ${OPTITDIR} environment variable.
If it's set then it should point to the installation directory of OptimizeIt.
Otherwise /usr/local/optit is used.  Of course you can modify scripts in any
way you seem fit.

Meanings of the scripts:

    nbopt.{sh,bat} - run NetBeans under Profiler
    nbthr.{sh,bat} - run NetBeans under Thread Debugger
    nbcvr.{sh,bat} - run NetBeans under Code Coverage Tool

OptimizeIt tools require extra permissions.  The easiest way to grant the tools
those permissions is adding these lines into your ${user.home}/.java.policy
file which is consulted by the default java security policy manager

grant codeBase "file:${OPTITDIR}/-" {
  permission java.security.AllPermission;
};
