Running Tasks: Quick Reference

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
  1. Right-click the project node in the Projects window and choose Properties.
  2. Select the Run node in the Categories pane.
  3. Type the fully qualified name of the class in the Main Class field.
Set the runtime arguments.
  1. Right-click the project node in the Projects window and choose Properties.
  2. Select the Run node in the Categories pane.
  3. Enter the arguments in the Arguments field.
Set the runtime classpath.
  1. Right-click the project node in the Projects window and choose Properties.
  2. Select the Libraries node in the Categories pane.
  3. Click Add Project, Add Library, or Add JAR/Folder.
Set JVM arguments.
  1. Right-click the project node in the Projects window and choose Properties.
  2. Select the Run node in the Categories pane.
  3. Type a space-separated list of arguments in the VM Options field.
Set the working directory for execution.
  1. Right-click the project node in the Projects window and choose Properties.
  2. Select the Run node in the Categories pane.
  3. 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.

  1. Select one or more files in the Projects window, Files window, or Source Editor.
  2. Choose Run > Run File > Run Class from the main menu.

Legal Notices