ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaha_5.4.0.1/qshell.htm

141 lines
7.7 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Java command in Qshell" />
<meta name="abstract" content="The java command in Qshell runs Java programs. It is compatible with the java tool that is supplied by Sun Microsystems, Inc. with a few exceptions." />
<meta name="description" content="The java command in Qshell runs Java programs. It is compatible with the java tool that is supplied by Sun Microsystems, Inc. with a few exceptions." />
<meta name="DC.Relation" scheme="URI" content="tools.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="qshell" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Java command in Qshell</title>
</head>
<body id="qshell"><a name="qshell"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Java command in Qshell</h1>
<div><p>The <samp class="codeph">java</samp> command in Qshell runs Java™ programs.
It is compatible with the <samp class="codeph">java</samp> tool that is supplied by Sun
Microsystems, Inc. with a few exceptions.</p>
<p>The IBM<sup>®</sup> Developer
Kit for Java ignores these options of the <samp class="codeph">java</samp> command
in Qshell.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e40">Option</th>
<th valign="top" id="d0e42">Description</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e40 ">-cs</td>
<td valign="top" headers="d0e42 ">This option is not supported.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-checksource</td>
<td valign="top" headers="d0e42 ">This option is not supported.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-debug</td>
<td valign="top" headers="d0e42 ">This option is supported by the iSeries™ internal debugger.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-noasyncgc</td>
<td valign="top" headers="d0e42 ">Garbage collection is always running with the IBM Developer Kit for Java.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-noclassgc</td>
<td valign="top" headers="d0e42 ">Garbage collection is always running with the IBM Developer Kit for Java.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-prof</td>
<td valign="top" headers="d0e42 ">The iSeries server
has its own performance tools.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-ss</td>
<td valign="top" headers="d0e42 ">This option is not applicable on the iSeries server.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-oss</td>
<td valign="top" headers="d0e42 ">This option is not applicable on the iSeries server.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-t</td>
<td valign="top" headers="d0e42 ">The iSeries server
uses its own trace function.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-verify</td>
<td valign="top" headers="d0e42 ">Always verify on the iSeries server.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-verifyremote</td>
<td valign="top" headers="d0e42 ">Always verify on the iSeries server.</td>
</tr>
<tr><td valign="top" headers="d0e40 ">-noverify</td>
<td valign="top" headers="d0e42 ">Always verify on the iSeries server.</td>
</tr>
</tbody>
</table>
</div>
<p>On the iSeries server,
the <samp class="codeph">-classpath</samp> option does not override the default classpath.
Instead, it is appended to the system default classpath. The <samp class="codeph">-classpath</samp> option
does override the CLASSPATH environment variable.</p>
<p>The <samp class="codeph">java</samp> command in Qshell supports new options for the iSeries server.
These are the new options that are supported. </p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e166">Option</th>
<th valign="top" id="d0e168">Description</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e166 ">-chkpath</td>
<td valign="top" headers="d0e168 ">This option checks for public write access to directories in the CLASSPATH.</td>
</tr>
<tr><td valign="top" headers="d0e166 ">-opt</td>
<td valign="top" headers="d0e168 ">This option specifies the optimization level.</td>
</tr>
<tr><td valign="top" headers="d0e166 ">-Xrun[:]</td>
<td valign="top" headers="d0e168 ">A message is displayed, indicating that a service program and an optional
parameter string for the JVM_OnLoad function during JVM startup.</td>
</tr>
<tr><td valign="top" headers="d0e166 "> -agentlib:</td>
<td valign="top" headers="d0e168 ">Indicates an <span class="keyword">i5/OS™</span> service
program containing a VM agent. The VM attempts to load the service program
from an <span class="keyword">i5/OS</span> library included
in the library list during start up. </td>
</tr>
<tr><td valign="top" headers="d0e166 ">-agentpath:</td>
<td valign="top" headers="d0e168 ">Load the library from the absolute path that follows this option. Library
name expansion does not occur and the options pass to the agent on start-up.</td>
</tr>
<tr><td valign="top" headers="d0e166 "><img src="./delta.gif" alt="Start of change" />-javaagent:&lt;jarpath&gt;[=&lt;options&gt;]<img src="./deltaend.gif" alt="End of change" /></td>
<td valign="top" headers="d0e168 "><img src="./delta.gif" alt="Start of change" />Loads Java programming language agents for use with
the java.lang.instrument package.<p><em>jarpath</em> is the path to the agent
JAR file. <em>options</em> is the agent options. You can use -javaagent:&lt;jarpath&gt;[=&lt;options&gt;]
more than once on the same command line to create multiple agents. More than
one agent may use the same <em>jarpath</em>.</p>
<img src="./deltaend.gif" alt="End of change" /></td>
</tr>
</tbody>
</table>
</div>
<p>The Run Java (RUNJVA) command in the <a href="clcomm.htm">CL
command</a> reference information describes these new options in detail.
The CL command reference information for the Create Java Program
(CRTJVAPGM) command, Delete Java Program (DLTJVAPGM) command, and Display Java Program
(DSPJVAPGM) command contains information about managing Java programs.</p>
<p>The <samp class="codeph">java</samp> command in Qshell is available using the Qshell
Interpreter.</p>
<p>For more information about the <samp class="codeph">java</samp> command in Qshell,
see the <a href="http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html" target="_blank">java tool by Sun Microsystems, Inc.</a></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="tools.htm" title="The IBM Developer Kit for Java supports these tools.">Java tools that are supported by the IBM Developer Kit for Java</a></div>
</div>
</div>
</body>
</html>