Standard Java SE Project Properties Dialog Box: Run

Use to configure options for running your project. You can create several configurations and set the main class, program arguments, working directory for program execution, and VM options for each configuration. When running the application, you can easily switch the configuration in the drop-down list on the editor toolbar.

Element Description

Configuration

Creates a new runtime configuration and enter its name in the dialog box that appears when New is clicked.

All configurations are saved in the configuration_name.properties file in the nbproject/configs directory of your project. After a new configuration is created, it becomes available in the configuration drop-down list on the editor toolbar and you can switch configurations while running your project.

Main Class

Specifies the main class for the application.

The Browse button only shows classes in the project's source folders. If you want to specify a class in one of the JAR files on the project's classpath, type the fully qualified class name in this field.

Arguments

Adds arguments to pass to the main class during application execution. Note that arguments cannot be passed to individual files

Working Directory

Specifies a separate working directory that is used during application execution.

If no value is specified, the project directory is used by default as a working directory.

VM Options

Specifies Java virtual machine options to be used for running the main class.

Separate options with a space. For more information about VM options, see

Run with Java Web Start

Select this checkbox to run and debug the application using Java Web Start.

This checkbox becomes available for selection after you enable Java Web Start on the Application > Web Start panel of the Project Properties dialog box.

Changing existing configurations

Changes the configuration currently selected in the Configuration field.

All changes you make to the default configuration propagate to all other configurations automatically. Any changes you make to a configuration other than the default configuration apply only to that non-default configuration



Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.