Display Java Program (DSPJVAPGM)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Display Java Program (DSPJVAPGM) command displays information about the Java program associated with a Java class file.

If no Java program is associated with the class file specified, escape message JVAB540 is sent.

Restriction: The class file must be in one of the following file systems: QOpenSys,"root", or a user-defined file system.

Top

Parameters

Keyword Description Choices Notes
CLSF Class file or JAR file Path name Required, Positional 1
OUTPUT Output *, *PRINT Optional, Positional 2
Top

Class file or JAR file (CLSF)

Specifies the file name from which to display the associated Java program. The file name may be qualified by one or more directory names.

class-file-name
Specify the name of the class file for identifying the class file to be used. If the name is qualified it must be enclosed in apostrophes. An example of a qualified class file name is '/directory1/directory2/myclassname.class'.
JAR-file-name
Specify the name of the Java archive (JAR) file for identifying the JAR or ZIP file to be used. A file is assumed to be a JAR file if the file name ends with '.jar' or '.zip'. If the name is qualified it must be enclosed in apostrophes. An example of a qualified JAR file name is '/directory1/directory2/myappname.jar'.
Top

Output (OUTPUT)

Specifies whether the output from the command is shown at the requesting work station or printed with the job's spooled output.

*
Output requested by an interactive job is shown on the display. Output requested by a batch job is printed with the job's spooled output.
*PRINT
The output is printed with the job's spooled output.
Top

Examples

DSPJVAPGM   CLSF('/projectA/myJavaclassname.class')
            OUTPUT(*)

This command will display information for the Java program associated with the class file myJavaclassname. The Java program information will be output to the display.

Top

Error messages

*ESCAPE Messages

JVAB521
File "&1" not a Java class file.
JVAB540
No Java program associated with the class file.
JVAB541
Error detected in Java program or class file, &2.
CPFA0A9
Object not found. Object is &1.
CPFA09C
Not authorized to object. Object is &1.
Top