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

71 lines
4.3 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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 javah tool" />
<meta name="abstract" content="The javah tool facilitates the implementation of Java native methods. It is compatible with the javah tool that is supplied by Sun Microsystems, Inc. with a few exceptions." />
<meta name="description" content="The javah tool facilitates the implementation of Java native methods. It is compatible with the javah tool that is supplied by Sun Microsystems, Inc. with a few exceptions." />
<meta name="DC.Relation" scheme="URI" content="javatool.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="javah" />
<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 javah tool</title>
</head>
<body id="javah"><a name="javah"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Java javah tool</h1>
<div><p>The <samp class="codeph">javah</samp> tool facilitates the implementation
of Java™ native
methods. It is compatible with the <samp class="codeph">javah</samp> tool that is supplied
by Sun Microsystems, Inc. with a few exceptions.</p>
<div class="note"><span class="notetitle">Note:</span> Writing native methods means that your application is not 100% pure Java.
It also means that your application is not directly portable across platforms.
Native methods are, by nature, platform or system-specific. Using native methods
may increase your development and maintenance costs for your applications.</div>
<p>The <samp class="codeph">javah</samp> tool is available using the Qshell Interpreter.
It reads a Java class file and creates a C-language header file
in the current working directory. The header file that is written is an iSeries™ Stream
File (STMF). It must be copied to a file member before it can be included
in a C program on the iSeries server.</p>
<p>The <samp class="codeph">javah</samp> tool is compatible with the tool that is provided
by Sun Microsystems, Inc. If these options are specified, however, the iSeries server
ignores them.</p>
<dl><dt class="dlterm"><strong>-td</strong></dt>
<dd>The <samp class="codeph">javah</samp> tool on the iSeries server does not require a temporary
directory.</dd>
<dt class="dlterm"><strong>-stubs</strong></dt>
<dd>Java on
the iSeries server
only supports the Java Native Interface (JNI) form of native methods.
Stubs were only required for the pre-JNI form of native methods.</dd>
<dt class="dlterm"><strong>-trace</strong></dt>
<dd>Relates to the .c stub file output, which Java on the iSeries server does not support.</dd>
<dt class="dlterm"><strong>-v</strong></dt>
<dd>Not supported.</dd>
</dl>
<div class="note"><span class="notetitle">Note:</span> The -jni option must always be specified. The iSeries server does not support native
method implementations prior to JNI.</div>
<p>For more information about the <samp class="codeph">javah</samp> tool, see the <a href="javaapi/tooldocs/windows/javah.html" target="_blank">javah
tool by Sun Microsystems, Inc.</a></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="javatool.htm" title="See the topics here for descriptions of Java tools.">Java tools</a></div>
</div>
</div>
</body>
</html>