Here you find the wrapper shell scripts to launch NetBeans under OptimizeIt
tools.  They work with OptimizeIt version 6. They do not work with 4.0 (or
at least the Windows version does not). They may also work with later versions
of OptimizeIt.

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 or c:\OptimizeitSuite\OptimizeitSuite42 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;
};
