How to run/execute an external program?
Use the "External Execution Support API".
Please not that some of the API mentioned in the links above got deprecated in NB 8.1. Please use extexecution.base
instead.
For more details see https://bz.apache.org/netbeans/show_bug.cgi?id=244308