## Launched application session |

If the session type in the application settings is set to "Application", the following settings are displayed in the middle part of the dialog:

- Java VM
  Choose the Java VM to run your application. Java VMs are configured on the "Java VMs" tab of JProfiler's general settings which are accessible by clicking the [General settings] button on the bottom of the dialog.
- Working directory
  Choose the directory in which your java process will be started either manually or by clicking on the [...] button to bring up a file chooser. As long as you have not selected a particular directory, this option is set to `[startup directory]` which means that JProfiler's startup directory will also be your application's working directory.
- VM arguments
  If your application needs virtual machine arguments of the form `-Dproperty=value`, you can enter them here. Parameters that contain spaces must be surrounded with double quotes (like `"-Dparam=a parameter with spaces"`).
- Main class or executable JAR
  Enter the fully qualified name of your main class or the path to an executable JAR file here. If you enter a main class, it has to be contained in class path (see above).

  Clicking on the [...] button brings up menu that lets you

  - Search the classpath
    If you have already configured your classpath, this option will search for classes with a main method and present them in the main class selection dialog.
  - Browse for an executable JAR file
    This brings up a file chooser where you can select an executable JAR file. If the JAR file has a Class-Path manifest entry, you will be asked whether the class path should be replaced with the contents of that attribute. Also, the working directory will be set to the parent directory of the executable JAR file after a confirmation.
  - Browser for a .class file
    This brings up a file chooser where you can select the `*.class` file of the desired main class. A dialog box will ask you whether to add the associated class path root directory to the class path.
- Arguments
  This is the place to enter any arguments you want to supply to the main class of your application. Arguments that contain spaces must be surrounded with double quotes (like `"a parameter with spaces"`).
- Open browser with URL
  If you would like to open a browser window along with the session, please select this checkbox and enter the URL in the adjacent text field. JProfiler polls this URL until it becomes available, only then is the browser opened. Please set the browser start command if you're working on a UNIX platform.