FaqTwoMainClassesWithArguments
How can I have two or more main classes with different arguments in one project?
The IDE supports multiple run configurations:
- Open the project's Properties dialog and select the Run category.
- Click on New... to create a new run configuration.
- For the new configuration, set the respective main class and arguments.
- The new configuration will be selected in the combo box in the IDE's toolbar. You can switch back to another run configuration using this toolbar, among other means.
Applies to: NetBeans 6.0 and later
Platforms: All