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
���饹�ե������ե�����֥뤷�ޤ���
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.
\f3 import java.awt.*; import java.applet.*; public class DocFooter extends Applet { String date; String email; public void init() { resize(500,100); date = getParameter("LAST_UPDATED"); email = getParameter("EMAIL"); } public void paint(Graphics g) { g.drawString(date + " by ",100, 15); g.drawString(email,290,15); } } \f1
���ξ�硢 javap DocFooter ��¹Ԥ���Ȱʲ��ν��Ϥ������ޤ���
\f3
Compiled from DocFooter.java public class DocFooter extends java.applet.Applet { java.lang.String date; java.lang.String email; public void init(); public void paint(java.awt.Graphics); public DocFooter(); } \f1
\f3javap -c DocFooter ��¹Ԥ���Ȱʲ��ν��Ϥ������ޤ���
\f3 .fl Compiled from DocFooter.java .fl public class DocFooter extends java.applet.Applet { .fl java.lang.String date; .fl java.lang.String email; .fl public DocFooter(); .fl public void init(); .fl public void paint(java.awt.Graphics); .fl } .fl .fl Method DocFooter() .fl 0 aload_0 .fl 1 invokespecial #1 <Method java.applet.Applet()> .fl 4 return .fl .fl Method void init() .fl 0 aload_0 .fl 1 sipush 500 .fl 4 bipush 100 .fl 6 invokevirtual #2 <Method void resize(int, int)> .fl 9 aload_0 .fl 10 aload_0 .fl 11 ldc #3 <String "LAST_UPDATED"> .fl 13 invokevirtual #4 <Method java.lang.String getParameter(java.lang.String)> .fl 16 putfield #5 <Field java.lang.String date> .fl 19 aload_0 .fl 20 aload_0 .fl 21 ldc #6 <String "EMAIL"> .fl 23 invokevirtual #4 <Method java.lang.String getParameter(java.lang.String)> .fl 26 putfield #7 <Field java.lang.String email> .fl 29 return .fl .fl Method void paint(java.awt.Graphics) .fl 0 aload_1 .fl 1 new #8 <Class java.lang.StringBuffer> .fl 4 dup .fl 5 invokespecial #9 <Method java.lang.StringBuffer()> .fl 8 aload_0 .fl 9 getfield #5 <Field java.lang.String date> .fl 12 invokevirtual #10 <Method java.lang.StringBuffer append(java.lang.String)> .fl 15 ldc #11 <String " by "> .fl 17 invokevirtual #10 <Method java.lang.StringBuffer append(java.lang.String)> .fl 20 invokevirtual #12 <Method java.lang.String toString()> .fl 23 bipush 100 .fl 25 bipush 15 .fl 27 invokevirtual #13 <Method void drawString(java.lang.String, int, int)> .fl 30 aload_1 .fl 31 aload_0 .fl 32 getfield #7 <Field java.lang.String email> .fl 35 sipush 290 .fl 38 bipush 15 .fl 40 invokevirtual #13 <Method void drawString(java.lang.String, int, int)> .fl 43 return .fl
3 -help \f3javap �Υإ�ץ�å���������Ϥ��ޤ���
3 -l ���ֹ�ȶɽ��ѿ��ơ��֥��ɽ�����ޤ���
3 -b JDK 1.1 �� \f3javap �Ȥβ��̸ߴ������ݾڤ��ޤ���
3 -public public ���饹����ӥ��Ф�����ɽ�����ޤ���
3 -protected protected ����� public �Υ��饹�ȥ��Ф�����ɽ�����ޤ���
3 -package package��protected������� public �Υ��饹�ȥ��Ф�����ɽ�����ޤ�������ϥǥե���Ȥ�����Ǥ���
3 -private ���٤ƤΥ��饹�ȥ��Ф�ɽ�����ޤ���
3 -Jflag ����ॷ���ƥ��ľ�� \f2flag ���Ϥ��ޤ���������˼����ޤ���
\f3 .fl javap -J-version .fl javap -J-Djava.security.manager -J-Djava.security.policy=MyPolicy MyClassName .fl
3 -s �����η������˥��㡼����Ϥ��ޤ���
3 -c ���饹�γƥ�åɤΤ���˵ե�����֥뤵��륳���ɡ����ʤ�� Java �Х��ȥ����ɤ�������̿���ɽ�����ޤ���������
http://java.sun.com/docs/books/vmspec/ �� ��\f2Java Virtual Machine Specification�פ˥ɥ�����Ȳ�����Ƥ��ޤ���3 -verbose ��åɤΥ����å�������������� \f2locals �� \f2args �ο�����Ϥ��ޤ���
3 -classpath path \f3javap �����饹��õ������˻��Ѥ���ѥ�����ꤷ�ޤ����ǥե���Ȥޤ��� CLASSPATH �Ķ��ѿ���������ޤ����ǥ��쥯�ȥ�ϥ�����ʬ�䤷�ޤ����������äơ�\f2path �ΰ��̷����ϼ��Τ褦�ˤʤ�ޤ���
\f3 .fl .:<your_path> .fl��������ޤ���
\f3 .fl .:/home/avh/classes:/usr/local/java/classes .fl
3 -bootclasspath path �֡��ȥ��ȥ�åץ��饹��?�ɤ���ѥ�����ꤷ�ޤ����֡��ȥ��ȥ�åץ��饹�ϡ��ǥե���ȤǤ� \f2jre/lib/rt.jar �����¾�Τ����Ĥ��� JAR �ե����� �ˤ��롢���� Java �ץ�åȥե������������륯�饹�Ǥ���
3 -extdirs dirs ���ȡ��뤵�줿��ĥ��ǽ����������С��饤�ɤ��ޤ�����ĥ��ǽ�ϡ��ǥե���ȤǤ� \f2java.ext.dirs �ˤ���ޤ���
15 CLASSPATH �桼��������饹�ؤΥѥ����ƥ�����Τ��뤿��˻��Ѥ��ޤ��� ʣ���Υǥ��쥯�ȥ����ꤹ����ϥ����Ƕ��ڤ�ޤ��� �ʲ�������ޤ���
javac��java��jdb��javah��javadoc