Features > Sample Applications > Running the Samples

Previous chapter  Documentation Home 

Running the Samples

  1. To quickly launch a sample application, expand one of your newly created project folders in the Package Explorer View, right click the src folder, and select Run As > Frontier Application. Like running any Java application, this will search the selected resource for any classes with a main method to run. If there is more than one eligible class, you will be prompted to choose which one you would like to run. If there is only one, which is the case the Frontier sample applications, the Java application launcher searches for any corresponding launch configurations and runs the application.

    Note: If you select Run As with the top-level project folder selected, the Java application launcher will search the entire classpath for eligible classes to run. Because the classpath includes the JRE and Frontier SDK libraries, this can be a somewhat lengthy process, which is why we recommend selecting the src folder before running as a Frontier Application.

  2. Src Run As Menu Option

  3. Each Frontier sample application has two pre-configured launch configurations—one to run the application locally, and another to run it remotely. Choose whether you would like to run the sample locally on your computer or on a remote grid system.

  4. Select Launch Configuration Dialog

  5. Each sample application takes one or more command line arguments. The default arguments are provided by the Frontier application launch configuration.

  6. Application Arguments Prompt

  7. If you choose to run the application remotely, you will need to have completed the remote mode setup procedures. You will be prompted for your password everytime you connect to a remote server if you choose not to store your password in the frontier-sdk-install/conf/frontier.properties file.

  8. Password Prompt Dialog

  9. If you choose to run the application locally, the Frontier Grid Simulator will execute your job as if it were running on a grid and executing your tasks on multiple engines. Additional feedback from the application can be viewed in the Eclipse Console View.

  10. Grid Simulator

Previous chapter Next chapter