Transforming Java class files into IBM i programs

Use the IBM® i Java™ Transform and Run view to transform and run Java programs on a remote IBM i server.

Before you begin

It is not necessary to transform a class file prior to running it; the IBM i server creates a program for you every time a new, or refreshed, class is run. You can control the size and performance of a Java program by using transform options. Before you can transform, you must export your class files to an IBM i integrated file system directory.

About this task

To transform your Java program:

Procedure

  1. Switch to the IBM i Java Transform and Run view:
    1. In the main menu, select Window > Show View > Other.
    2. Expand IBM i and select i Java Transform and Run.
  2. To populate the Working Folder field, click Browse to select a directory in the Browse For Folder window.
  3. Optional: Click Advanced Options to fine-tune your transform. Select the options you want and click OK. Options are described in the related references below.
  4. Click the Create i Java program tab.
  5. Expand the folder in the left pane and select the classes in the right pane that you want to transform. Note that you can select classes (or JAR files, if you select Allow JAR files) from multiple folders.
  6. Click CRTJVAPGM to have IBM i Java programs created for the selected classes. The log confirms success or informs you of any errors.
  7. At any time during the transform, you can click Stop. Use Refresh to refresh the file list. Use Clear Log to clear the Log field.

Results


Feedback