How to pass command line arguments to a NetBeans Platform application when run inside the IDE
Open "nbproject/project.properties" and add there:
run.args.extra=-arg1 --argument2
Open "nbproject/project.properties" and add there:
run.args.extra=-arg1 --argument2