Running iSeries Java bean examples

Preview example Java beans or import them into your projects.

Use the Java Bean Examples wizard to:

To run examples from the Java Bean Examples wizard:

  1. Click File > New > Other.
  2. Expand Examples, then select iSeries > Java Bean Examples.
  3. Click Next to launch the Java Bean Examples wizard. The wizard lists a number of beans in the left pane; when you select a bean, a brief description appears in the right pane. All the examples of that bean are shown in the Java Bean Examples section. The first example listed is automatically selected.
  4. Select a bean to read the description.
  5. Select an example to read the example description.
  6. Click Run to preview the example in the wizard.
You can preview as many examples as you want, and the wizard does not add anything to your workspace. The only example that you cannot run inside the wizard is the RecordIOManagerSample, which you have to import to the workspace first.

To create a new project containing the examples:

  1. Click Next to go to the second page of the wizard. Use this page to create a new project containing the examples.
  2. Type a name in the Project name field.
  3. Click the check box to use a default workspace location for the project, or click Browse to specify a different location.
  4. Click Finish.

The wizard creates a new Java project in the workspace and imports all the bean example source into this project. The class path of the project is set to include the JAR files required by the examples. A progress monitor at the bottom of the wizard indicates the progress of the project creation and the import.

Related tasks
Developing iSeries Java applications
Related reference
IBM-supplied iSeries Java beans