This topic describes common tasks related to running applications. For more
detailed information, click the links in the right column.
To perform this task |
Follow these steps |
Set the project main class |
- Right-click the project node in the Projects window and choose Properties.
- Select the Run node in the Categories pane.
- Type the fully qualified name of the class in the Main
Class field.
|
Set the runtime arguments. |
- Right-click the project node in the Projects window and choose Properties.
- Select the Run node in the Categories pane.
- Enter the arguments in the Arguments field.
|
Set the runtime classpath. |
- Right-click the project node in the Projects window and choose Properties.
- Select the Libraries node in the Categories pane.
- Click Add Project, Add
Library,
or Add JAR/Folder.
|
Set JVM arguments. |
- Right-click the project node in the Projects window and choose Properties.
- Select the Run node in the Categories pane.
- Type a space-separated list of arguments in the VM Options field.
|
Set the working directory for execution. |
- Right-click the project node in the Projects window and choose Properties.
- Select the Run node in the Categories pane.
- Type the full path to the working directory in the Working Directory
field.
|
Run a project. |
- Choose Run > Run
Main Project (F6) or right-click any project in the Projects window
and choose Run Project.
|
Run a single file.
|
- Select one or more files in the Projects window, Files window, or
Source Editor.
- Choose Run > Run
File > Run
Class from the main menu.
|