cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

FaqTwoMainClassesWithArguments

Revision as of 17:44, 6 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

How can I have two or more main classes with different arguments in one project?

Starting with NetBeans 6.0, 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.x

Platforms: All