92 lines
2.8 KiB
HTML
92 lines
2.8 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||
|
<html>
|
||
|
<!-- This document was copied from the IBM Developer Kit for Java V4R3 Reference. -->
|
||
|
<head>
|
||
|
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||
|
<meta http-equiv="Content-Type" content=
|
||
|
"text/html; charset=utf-8">
|
||
|
<title>javah - Generate C header or stub file</title>
|
||
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</HEAD>
|
||
|
<body bgcolor="#FFFFFF">
|
||
|
<!-- Java sync-link -->
|
||
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
||
|
|
||
|
|
||
|
|
||
|
<h2>javah - Generate C header or stub file</h2>
|
||
|
|
||
|
<p>The <tt>javah</tt> tool facilitates the implementation of
|
||
|
Java<sup>tm</sup> native methods. It is compatible with the <tt>
|
||
|
javah</tt> tool that is supplied by Sun Microsystems, Inc. with a
|
||
|
few exceptions.</p>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td valign="top"><strong>Note:</strong> </td>
|
||
|
<td>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.</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<p>The <tt>javah</tt> 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 a Stream File (STMF). It must be copied to a file
|
||
|
member before it can be included in a C program on i5/OS.</p>
|
||
|
|
||
|
<p>The <tt>javah</tt> tool is compatible with the tool that is
|
||
|
provided by Sun Microsystems, Inc. If the following options are
|
||
|
specified; however, iSeries 400 ignores them:</p>
|
||
|
|
||
|
<table border cellpadding="3">
|
||
|
<tr>
|
||
|
<th>Ignored option</th>
|
||
|
<th>Description</th>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td align="center"><strong>-td</strong></td>
|
||
|
<td>The <tt>javah</tt> tool does not require a temporary
|
||
|
directory.</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td align="center"><strong>-stubs</strong></td>
|
||
|
<td>Java on iSeries only supports the Java Native Interface (JNI)
|
||
|
form of native methods. Stubs were only required for the pre-JNI
|
||
|
form of native methods.</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td align="center"><strong>-trace</strong></td>
|
||
|
<td>Relates to the .c stub file output, which Java on iSeries does
|
||
|
not support.</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td align="center"><strong>-v</strong></td>
|
||
|
<td>Not supported.</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td valign="top"><strong>Note:</strong></td>
|
||
|
<td>The <strong>-jni</strong> option must always be specified. The
|
||
|
iSeries server does not support native method implementations before JNI.</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<p>For more information about the <tt>javah</tt> tool, see the <a
|
||
|
href=
|
||
|
"http://java.sun.com:80/products/jdk/1.1/docs/tooldocs/win32/javah.html"
|
||
|
target="_blank">javah tool</a> <img src="www.gif" alt=
|
||
|
"Link outside Information Center"> by Sun Microsystems, Inc.</p>
|
||
|
</body>
|
||
|
</html>
|
||
|
|