# Exercise 1.1: Importing the required resource

Before you begin this tutorial, you must import the following file:

- RandomNumbers.java

This program implements a random number simulation. The program writes to the console using `System.out.println`. Your probe will also write to the console. This will allow you to see how the probe interacts with the program.

Importing the RandomNumbers.java file involves two steps:

1. Creating a project named RandomNumbers
2. Importing the RandomNumbers.java file into the project

To create the project:

1. If the Welcome view is open, click X in the view's tab to close the view. (You can restore the Welcome view at any time by selecting Help > Welcome.)
2. From the Software Development Platform menu bar, select Project. Make sure that Build Automatically is checked.
3. Select Window > Open Perspective > Java. The Java perspective opens.
4. Select File > New > Project... The New Project dialog box opens.
5. In the Wizards list, select Java Project and click Next. The New Java Project dialog box opens.
6. In the Project name field, type `RandomNumbers`, then click Finish.

To import the RandomNumbers.java file:

1. In the Package Explorer, right-click RandomNumbers and select Import... The Import dialog box opens.
2. Under Select an import source, select File system and click Next. The dialog box changes to allow you to import a file system.
3. Next to From directory, click Browse. The "Import from directory" dialog box opens.
4. Navigate to the following directory: <installdir>/rad/eclipse/plugins/com.ibm.rational.pd.probe.tutorial.doc_<version>, where <installdir> is the directory where your Software Development Platform application is installed.
5. Select resources, then click OK.
6. In the Import dialog box, click the check box next to the `RandomNumbers.java` entry. A check mark appears in the check boxes next to `resources` and `RandomNumbers.java`.
7. In the Import dialog box, click Finish. An entry for `RandomNumbers` is added in the Package Explorer view.

Now you are ready to begin Exercise 1.2: Creating your first probe.

Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.