Run options

Use the Run tab in the Launch Configurations window or in the iSeries Java Transform and Run view to specify runtime options.

The iSeries Java Transform and Run view provides five option sets. You can set up any or all of these individual sets, save them in the view, and select one to use whenever you run your Java program.

Note: You can also set runtime options through Java properties (use the Properties tab). For example, for garbage collection, the os400.gc.heap.size.init and os400.gc.heap.size.max properties control initial and maximum heap sizes respectively.
Field Description
Parameter values Enter the name of one or more parameter values (up to 200) that are passed to the Java program. The default is no parameters.

The limit for the PARM parameter is 256 characters.

This setting is overridden by the Arguments field in the iSeries Java Transform and Run view.

Class path security Specify the level of warnings given for directories in the class path that have public write authority. A directory in the class path that has public write authority is a security exposure because it might contain a class with the same name as the one you want to run. The system first runs whichever class file it finds first. Levels of warning include:
*WARN
The system sends a warning message for the directory in the class path that has public write authority. This level is the default.
*SECURE
The system sends a warning message for each directory in the class path that has public write authority. The existence of one or more warning messages generates an escape message and prevents the Java program from running.
*IGNORE
The system sends no warning messages. Ignore the fact that directories in the class path might have public write authority.
Optimization
10
The Java program contains a compiled version of the class byte codes but has only minimal additional compiler optimization. Variables can be displayed and modified while debugging.
*INTERPRET
The Java program that is created is not optimized. When invoked, the Java program interprets the class file byte codes. Variables can be displayed and modified during debugging.
*JIT
No Java program containing machine instruction sequences is created. The class runs using the Just In Time (JIT) Compiler.
20
The Java program contains a compiled version of the class file byte codes and has some additional compiler optimization. Variables can be displayed but not modified 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.
Interpret Specifies how the Java class files should run.
*OPTIMIZE
Whether all Java classes run interpretively or not depends on the value of the OPTIMIZE parameter. If *INTERPRET was specified in the OPTIMIZE parameter, all Java classes run interpretively. If you specify any other value, only Java classes with Java programs created using the CRTJVAPGM command and specifying OPTIMIZE(*INTERPRET) run interpretively.
*YES
All Java classes run interpretively, regardless of the optimize value of the associated Java program. Java classes that need a Java program created will use the optimization level specified in the OPTIMIZE parameter.
*NO
Only Java classes with Java programs created using the CRTJVAPGM command and specifying OPTIMIZE(*INTERPRET) will run interpretively.
*JIT
All Java class files run using the Just In Time Compiler (JIT), regardless of the optimize value that was used when the associated Java program was created.
Options
*NONE
No special options are used when a Java class runs.
*VERBOSE
A message is displayed each time a class file is loaded.
*DEBUG
Allows the use of the iSeries 400 system debugger for the Java program.
*VERBOSEGC
A message is displayed for each garbage collection sweep.
*NOCLASSGC
Unused classes are not reclaimed when garbage collection runs.
Job name Specifies the name that is associated with the batch immediate (BCI) job that is started when this command is run. The BCI job is where the Java program will be run.
QJVACMDSRV
The job name for the BCI job will be QJVACMDSRV.
*GEN
The job name is generated from the class name.
name
Specify the name to be used for the BCI job that is used to run the Java program.
Related tasks
Running Java programs remotely