Transform options

Use the Transform tab in the iSeries Java Transform and Run view to set the options with which to create an iSeries Java program from a Java class file. The resulting Java program object becomes part of the class file object, but cannot be viewed or modified directly.

Note: The Java class file name must be in one of the following iSeries integrated file systems: QOpenSys, the root, or a user-defined file system.

The iSeries Java Transform and Run view provides five option sets. You can create up to five sets of options, save them in the view, and select one to use whenever you transform a Java program.

Fields in the Transform page:

Field Description
Optimization
10
The Java program contains a compiled version of the class byte codes but has only minimal additional compiler optimization. You can display and modify variables while debugging.
*INTERPRET
The Java program is not optimized. When invoked, the Java program interprets the class file byte codes. You can display and modify variables during debugging.
20
The Java program contains a compiled version of the class file byte codes and has some additional compiler optimization. You can display but not modify variables while debugging.
30
The Java program contains a compiled version of the class file byte codes and has more compiler optimization than optimization level 20. During a debug session, user variables can be displayed but not changed. The presented values may not be the current values of the variables.
40
The Java program contains a compiled version of the class file byte codes and has more compiler optimization than optimization level 30. All call and instruction tracing is disabled.
Replace program
*YES
The existing Java program associated with this class file is replaced with the new Java program being created.
*NO
An existing Java program associated with this class file is replaced only if the class file was changed since the existing program was created; otherwise, the system halts creation of the new Java program and displays a message.
Enable performance collection
NONE
No performance data is collected.
*ENTRYEXIT
Performance data is collected for procedure entry and exit.
*FULL
Performance data is collected for procedure entry and exit and before and after calls to external procedures.
Profiling data
*NOCOL
Java program(s) that you create will not collect profile data.
*COL
Java program(s) that you create will collect profile data. If the Java programs(s) have profiling data applied, specifying *COL removes all profiling data. *COL is not supported for a .class file.
User profile
*USER
The program runs under the user profile of the program's user.
*OWNER
The user profiles of both the program's owner and the program's user are used when the program is processed.
Use adopted authority
*NO
Program adopted authority from previous call levels is not used when the program is running.
*YES
Program adopted authority from previous call levels is used when the program is running. If you specify an authorization list for the QUSEADPAUT system value and you are not included in that authorization list, *NO is used.
Directory subtree
*NONE
No subtrees are processed.
*ALL
The entire subtree of the path specified in CLSF is processed.
Target release Specify the release of the operating system on which you intend to use the object being created in the VxRxMx format for version, release, and modification level. You can use the object on a system with the chosen release or any subsequent release of the operating system installed. Alternatively, specify the following:
*CURRENT
You can use the object on the release of the operating system currently running on your system. You can also use it on a system with any subsequent release of the operating system installed.
Note: The Target Release parameter is valid only for OS/400 V4R5 or later.
Licensed internal code optimization
*OPTIMIZE
Use the set of compile-time options that are implicitly associated with the optimization level specified on the OPTIMIZE parameter. If OPTIMIZE(*INTERPRET) is specified, no compile-time optimizations are performed.
'Licensed-Internal-Code-options-string'
The system uses the selected Licensed Internal Code compile-time options when creating the Java program object.
Other Include in this field any text that you want to have appended to the end of the command string. Example: JDKVER('1.2.2').

These error messages might appear in the log:

JVAB524 &1 Java programs created, &4 with errors. &2 Java programs were current. &3 Java programs not created
JVAB532 Unable to create Java program for "&1"
JVAB535 Unmonitored exception received.
Related tasks
Transforming Java class files into iSeries programs