ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/anzjvapgm.htm

199 lines
7.0 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Analyze Java Program (ANZJVAPGM)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="ANZJVAPGM.Top_Of_Page"></a>
<h2>Analyze Java Program (ANZJVAPGM)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#ANZJVAPGM.PARAMETERS.TABLE">Parameters</a><br>
<a href="#ANZJVAPGM.COMMAND.EXAMPLES">Examples</a><br>
<a href="#ANZJVAPGM.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="ANZJVAPGM"></a>
<p>The Analyze Java Program (ANZJVAPGM) command analyzes a Java program, lists its classes and shows the current status of each class.
</p>
<p><b>Restrictions:</b> The file must be in one of the following file systems: QOpenSys,"root", or a user-defined file system.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ANZJVAPGM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="ANZJVAPGM.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#ANZJVAPGM.CLSF"><b>CLSF</b></a></td>
<td valign="top">Class file or JAR file</td>
<td valign="top"><i>Path name</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#ANZJVAPGM.CLASSPATH"><b>CLASSPATH</b></a></td>
<td valign="top">Classpath</td>
<td valign="top"><i>Path name</i>, <b><u>*PGM</u></b>, *ENVVAR</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ANZJVAPGM.JDKVER"><b>JDKVER</b></a></td>
<td valign="top">Java developer kit version</td>
<td valign="top"><i>Character value</i>, <b><u>*PGM</u></b>, *CURRENT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ANZJVAPGM.DETAIL"><b>DETAIL</b></a></td>
<td valign="top">Detail</td>
<td valign="top"><b><u>*NONCURRENT</u></b>, *FULL</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ANZJVAPGM.OUTPUT"><b>OUTPUT</b></a></td>
<td valign="top">Output</td>
<td valign="top"><b><u>*</u></b>, *PRINT</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#ANZJVAPGM.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="ANZJVAPGM.CLSF"></a>
<h3>Class file or JAR file (CLSF)</h3>
<p>Specifies the class file , JAR file, or ZIP file name which has a Java program to analyze. The file name may be qualified by one or more directory names.
</p>
<dl>
<dt><b><i>class-file-name</i></b></dt>
<dd>Specify the name of the class file. If the name is qualified it must be enclosed in apostrophes. An example of a qualified class file name is '/directory1/directory2/myclassname.class'.
</dd>
<dt><b><i>JAR-file-name</i></b></dt>
<dd>Specify the name of the Java archive (JAR) file. 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'.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ANZJVAPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ANZJVAPGM.CLASSPATH"></a>
<h3>Classpath (CLASSPATH)</h3>
<p>Specifies the path used to locate classes referenced by the Java program being analyzed. Directories are separated by colons.
</p>
<dl>
<dt><b><u>*PGM</u></b></dt>
<dd>The class path to use is the same one used to create the Java program being analyzed.
</dd>
<dt><b>*ENVVAR</b></dt>
<dd>The class path is determined by the environment variable CLASSPATH.
</dd>
<dt><b><i>class-path</i></b></dt>
<dd>Path used to locate classes. An example class path is '/directory1/directory2:/QIBM/ProdData/Java400'.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ANZJVAPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ANZJVAPGM.JDKVER"></a>
<h3>Java developer kit version (JDKVER)</h3>
<p>Specifies the Java Development Kit (JDK) version to use when analyzing the Java program.
</p>
<dl>
<dt><b><u>*PGM</u></b></dt>
<dd>The JDK version path to use is the same one used to create the Java program being analyzed.
</dd>
<dt><b>*CURRENT</b></dt>
<dd>The JDK version currently installed as the system default is to be used.
</dd>
<dt><b><i>Java-Development-Kit-version</i></b></dt>
<dd>The JDK version to be used. An example JDK version is '1.2.2'.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ANZJVAPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ANZJVAPGM.DETAIL"></a>
<h3>Detail (DETAIL)</h3>
<p>Specifies the amount of detail to show.
</p>
<dl>
<dt><b><u>*NONCURRENT</u></b></dt>
<dd>Show only those classes which are not current with respect to the given classpath.
</dd>
<dt><b>*FULL</b></dt>
<dd>Show all classes included in the Java stand-alone program. A status of <b>current</b> or <b>not current</b> will be shown for each class.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ANZJVAPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ANZJVAPGM.OUTPUT"></a>
<h3>Output (OUTPUT)</h3>
<p>Specifies whether the output from the command is shown at the requesting work station or printed with the job's spooled output.
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>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.
</dd>
<dt><b>*PRINT</b></dt>
<dd>The output is printed with the job's spooled output.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ANZJVAPGM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ANZJVAPGM.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
ANZJVAPGM CLSF('/projectA/myJavaclassname.class')
DETAIL(*FULL) OUTPUT(*)
</pre>
</p>
<p>This command will analyze the Java program associated with the class file myJavaclassname. The status for all classes included in the Java program will be listed. The Java program information will be output to the display.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ANZJVAPGM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ANZJVAPGM.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>JVAB278</b></dt>
<dd>No Java program associated with the file.
</dd>
<dt><b>JVAB544</b></dt>
<dd>Unmonitored exception received.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ANZJVAPGM.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>