javah.1 revision 0
t

Copyright 2000-2006 Sun Microsystems, Inc. All Rights Reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

This code is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 only, as
published by the Free Software Foundation.

This code is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
version 2 for more details (a copy is included in the LICENSE file that
accompanied this code).

You should have received a copy of the GNU General Public License version
2 along with this work; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
CA 95054 USA or visit www.sun.com if you need additional information or
have any questions.


macro stdmacro
javah 1 "2006 ǯ 9 �� 4 ��" "Java SE 6" "�桼�������ޥ��"
"̾��"
javah - C ����Υإå��ȥ����֥ե�����Υ����ͥ졼��
This document was created by saving an HTML file as text
from the JavaSoft web site:

http://java.sun.com/products/jdk/1.2/docs/tooldocs/tools.html

and adding appropriate troff macros. Because the JavaSoft web site
man pages can change without notice, it may be helpful to diff
files to identify changes other than new functionality.

\f3javah �ϡ�Java ���饹���� C �إå��ե������ C �������ե������������ޤ��������Υե�����ϡ�Java �ץ?��ߥ󥰸���ǽ񤫤줿�����ɤȡ�C �ʤɤΤ���¾�θ���ǽ񤫤줿�����ɤ���³���������ɤ���ߤ˺��Ѥ���褦�ˤ��ޤ���

"����"
javah [ options ] fully-qualified-classname . . .

javah_g [ options ] fully-qualified-classname . . .

"��ǽ����"
"stub file generator" "" "stub file generator \(em \fLjavah" "C header and stub file generator" "" "C header and stub file generator \(em \fLjavah" "javah" "" "\fLjavah \(em C header and stub file generator" javah ���ޥ�ɤϡ��ͥ��ƥ��֥᥽�åɤ��������Τ�ɬ�פ� C ����Υإå�����ӥ������ե�������������ޤ��� C �Υץ?���ϡ� �������줿�إå��ȥ������ե������Ȥäơ� �ͥ��ƥ��֥����������ɤ��饪�֥������ȤΥ��󥹥��� �ѿ��򻲾ȤǤ��ޤ��� .h �ե�����ϡ��б����륯�饹�˹�ä��쥤�����Ȥ� ��¤�������ޤ�Ǥ��ޤ��� ��¤�Τ˴ޤޤ��ե�����ɤϡ����饹��Υ��󥹥����ѿ��� �б����Ƥ��ޤ���

�إå��ե�����̾����ӥإå��ե���������������빽¤��̾�ϡ� ���饹̾�����������ޤ��� javah ���Ϥ���륯�饹���ѥå����������ˤ���С� ���Υѥå�����̾���ե�����̾����ӹ�¤��̾����Ƭ���ղä���ޤ��� ̾���δ֤ϲ��� (_) �Ƕ��ڤ��ޤ���

�ǥե���ȤǤϡ� javah �ϥ��ޥ�ɹԤǻ��ꤵ�줿�ġ��Υ��饹���Ф��� �إå��ե����������������ߤΥǥ��쥯�ȥ�˽��Ϥ��ޤ��� -stubs ���ץ�������ꤹ��ȥ������ե����뤬��������ޤ��� -o ���ץ�������ꤹ��ȡ����ꤷ�������饹���Ф�����ϥե����� ��Ϣ�뤷�� 1 �ĤΥե�����Ȥ����������ޤ���

�������ͥ��ƥ��֥᥽�åɥ��󥿥ե������� Java Native Interface (JNI) �ϡ��إå�����䥹���֥ե������ɬ�פȤ��ޤ��� ������ javah ���ޥ�ɤϸ��ߤ� JNI �����Υͥ��ƥ��֥᥽�åɤ�ɬ�פ� �ͥ��ƥ��֥᥽�åɴؿ��ץ�ȥ����פ������Ǥ��ޤ��� javah �ϥǥե���Ȥ� JNI �����ǽ��Ϥ������η�̤� .h �ե�����˳�Ǽ���ޤ���

javah_g �����Ŭ���С������� javah �ǡ� jdb �ʤɤΥǥХå��Ѥλ��Ѥ�Ŭ���Ƥ��ޤ���

"���ץ����"

15 -o " outputfile" ���ޥ�ɹԤǻ��ꤷ�����٤ƤΥ��饹���Ф����̤Υإå��ե�����ޤ��� �������ե������Ϣ�뤷�� outputfile �˳�Ǽ���ޤ��� -o ���ץ����ޤ��� -d ���ץ�����������ѤǤ��ޤ���

15 -d " directory" javah ���إå��ե�����ޤ��ϥ����֥ե������񤭽Ф� �ǥ��쥯�ȥ����ꤷ�ޤ���

15 -stubs Java ���֥������ȥե����뤫�� C �����������������ޤ���

15 -verbose �ܺپ���ν��Ϥ��׵ᤷ�ޤ��� javah �ϡ��������줿�ե�����ξ��֤˴ؤ����å������� stdout �˽񤭽Ф��ޤ���

15 -help javah �λ���ˡ�ˤĤ��ƥإ�ץ�å���������Ϥ��ޤ���

15 -version javah �С������������Ϥ��ޤ���

15 -jni JNI �����Υͥ��ƥ��֤ʥ᥽�åɴؿ��Υץ�ȥ����פ����ä����ϥե������ �������ޤ�������ϥǥե���Ȥν��ϤǤ��뤿�ᡢ -B -jni �Ͼ�ά��ǽ�Ǥ���

15 -classpath " path" javah �����饹�򸡺����뤿����Ѥ���ѥ��� path �ǻ��ꤷ�ޤ������λ����ͤϡ��ǥե���Ȥ���� CLASSPATH �Ķ��ѿ��������ͤ򥪡��С��饤�ɤ��ޤ��� ʣ���Υǥ��쥯�ȥ����ꤹ����ϥ����Ƕ��ڤ�ޤ��� �������ä� path ���̾�η����ϼ��Τ褦�ˤʤ�ޤ���

.:< your_path >

�ѥ��λ����㡧

�ص��塢\f2* �Υ١���̾��ޤ९�饹�ѥ����Ǥϡ��ǥ��쥯�ȥ���γ�ĥ�� \f2.jar �ޤ��� \f2.JAR ���Ĥ��٤ƤΥե�����Υꥹ�Ȥ���ꤹ��Τ�Ʊ���Ȥߤʤ���ޤ� (Java �ץ?���Ϥ��� 2 �ĤθƤӽФ�����̤Ǥ��ʤ�)��

���Ȥ��С��ǥ��쥯�ȥ� \f2foo �� \f2a.jar �� \f2b.JAR ���ޤޤ�Ƥ����硢���饹�ѥ����� \f2foo/* �� \f2A.jar:b.JAR ��Ÿ������ޤ�����������JAR �ե�����ν��֤�̤����Ȥʤ�ޤ������Υꥹ�Ȥˤϡ������ե������ޤᡢ���ꤵ�줿�ǥ��쥯�ȥ���Τ��٤Ƥ� JAR �ե����뤬�ޤޤ�ޤ���\f2* �����������륯�饹�ѥ�����ȥ�ϡ������ȥǥ��쥯�ȥ���Τ��٤Ƥ� JAR �ե�����Υꥹ�Ȥ�Ÿ������ޤ���\f2CLASSPATH �Ķ��ѿ��⡢������ˤ�Ʊ�ͤ�Ÿ������ޤ������饹�ѥ��Υ磻��ɥ�����Ÿ����ɬ����Java ���ۥޥ���ε�ư���˼¹Ԥ���ޤ����������äơ�\f2System.getenv("CLASSPATH") �ƤӽФ��ʤɤδĶ����Ф����䤤��碌��Ԥ�ʤ��¤ꡢŸ������Ƥ��ʤ��磻��ɥ����ɤ� Java �ץ?����ǧ�����ޤ���

15 -bootclasspath " path" bootstrap ���饹��?�ɤ���ѥ�����ꤷ�ޤ����ǥե���ȤǤϡ�bootstrap ���饹�ϥ����Ȥʤ� Java 2 �ץ�åȥե������������륯�饹�ǡ� jre/lib/rt.jar �����¾�ν��פ� jar �ե�����˴ޤޤ�Ƥ��ޤ���

15 -old �Ť� JDK 1.0 �����Υإå��ե�������������ޤ���

15 -force ��˽��ϥե�����˽񤭹��ळ�Ȥ���ꤷ�ޤ���

15 -J "option" option �� Java ���ۥޥ�����Ϥ��ޤ��������ǡ� option �ϡ�Java ���ץꥱ�������ư�ץ?���λ��ȥڡ����� ��������Ƥ��륪�ץ����� 1 �ĤǤ������Ȥ��С� -J-Xms48m �ϡ���ư���˻��Ѥ������� 48M �Х��Ȥ����ꤷ�ޤ���

"�Ķ��ѿ�"

15 CLASSPATH �桼��������饹�ؤΥѥ��򥷥��ƥ�����Τ��뤿��˻��Ѥ��ޤ��� ʣ���Υǥ��쥯�ȥ����ꤹ����ϥ����Ƕ��ڤ�ޤ��� �ʲ�����򼨤��ޤ���

"��Ϣ����"

javac��java��jdb��javap��javadoc