Setting Execution Arguments

Execution arguments may be set for any class that defines the method public static void main(String[] args).

1.

In the Packages view, select the Java compilation unit or class file for which you want to set execution arguments.

2.

From its context menu, select Properties.

3.

On the Execution Arguments page, you can use the following fields as needed:

  • Program Arguments : Application-specific values that your code is expecting (e.g., a user name or a URL for locating help files).
  • VM Arguments : Values meant to change the behavior of the Java virtual machine (VM). For example, you may need to tell the VM whether to use a just-in-time (JIT) compiler, or you may need to specify the maximum heap size the VM should use. Refer to your VM's documentation for more information about the available VM arguments.

4.

Click OK when you are done. Every time you launch this executable, these execution arguments will be used.