Manpages

Manpage of javap

javap

Section: User Commands (1)
Updated: 2000 ǯ 7 ·î 28 Æü
Index
Return to Main Contents
 

̾Á°

javap - Java ¥¯¥é¥¹¥Õ¥¡¥¤¥ëµÕ¥¢¥»¥ó¥Ö¥é  

·Á¼°

javap [ -b ] [ -bootclasspath path ] [ -c ]
      [ -classpath path ] [ -extdirs dirs ] [ -help ]
      [ -J flag ] [ -l ] [ -package ] [ -private ]
      [ -protected ] [ -public ] [ -s ] [ -verbose ]
      class . . .  

µ¡Ç½ÀâÌÀ

javap ¥³¥Þ¥ó¥É¤Ï¡¢ Javatm ¥¯¥é¥¹¥Õ¥¡¥¤¥ë¤òµÕ¥¢¥»¥ó¥Ö¥ë¤·¤Þ¤¹¡£ ½ÐÎÏÆâÍƤϥª¥×¥·¥ç¥ó¤Ç»ØÄꤷ¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥ó¤ò 1 ¤Ä¤â»ØÄꤷ¤Ê¤¤¤È¡¢ javap ¤ÏÅϤµ¤ì¤¿¥¯¥é¥¹¤Î package¡¢ protected¡¢ ¤ª¤è¤Ó public ¥Õ¥£¡¼¥ë¥É¤È¥á¥½¥Ã¥É¤ò½ÐÎϤ·¤Þ¤¹¡£ javap ¥³¥Þ¥ó¥É¤Î½ÐÎÏÀè¤Ï stdout ¤Ç¤¹¡£¤¿¤È¤¨¤Ð¡¢°Ê²¼¤Î¥¯¥é¥¹Àë¸À¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Þ¤¹¡£

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);
                }
}

¤³¤Î¾ì¹ç¡¢ javap DocFooter ¤ò¼Â¹Ô¤¹¤ë¤È°Ê²¼¤Î½ÐÎϤ¬ÆÀ¤é¤ì¤Þ¤¹¡£

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();
}

 

¥ª¥×¥·¥ç¥ó

°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬»ÈÍѤǤ­¤Þ¤¹¡£
-b
JDK 1.1 ¤Î javap ¤È¤Î²¼°Ì¸ß´¹¤òÊݾڤ·¤Þ¤¹¡£
-bootclasspathpath
bootstrap ¥¯¥é¥¹¤ò¥í¡¼¥É¤¹¤ë¥Ñ¥¹¤ò»ØÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢bootstrap ¥¯¥é¥¹¤Ï¥³¥¢¤È¤Ê¤ë Java ¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤ò¼ÂÁõ¤¹¤ë¥¯¥é¥¹¤Ç¡¢ jre/lib/rt.jar ¤È jre/lib/i18n.jar ¤Ë¤¢¤ê¤Þ¤¹¡£
-c
¥¯¥é¥¹Æâ¤Î¸Ä¡¹¤Î¥á¥½¥Ã¥É¤Ë¤Ä¤¤¤Æ¡¢µÕ¥¢¥»¥ó¥Ö¥ë¤µ¤ì¤¿¥³¡¼¥É¡¢ ¤¹¤Ê¤ï¤Á Java ¥Ð¥¤¥È¥³¡¼¥É¤«¤é¤Ê¤ëÌ¿Îá¤ò½ÐÎϤ·¤Þ¤¹¡£¾ÜºÙ¤Ï¡¢¡ØJava Virtual Machine Specification¡Ù¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£
-classpathpath
javap ¤¬¥¯¥é¥¹¤òõ¤¹¤Î¤ËÍѤ¤¤ë¥Ñ¥¹¤ò path ¤Ç»ØÄꤷ¤Þ¤¹¡£¤³¤Î»ØÄêÃͤϡ¢¥Ç¥Õ¥©¥ë¥È¤ª¤è¤Ó CLASSPATH ´Ä¶­ÊÑ¿ô¤ÎÀßÄêÃͤò¥ª¡¼¥Ð¡¼¥é¥¤¥É¤·¤Þ¤¹¡£ Ê£¿ô¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄꤹ¤ë¾ì¹ç¤Ï¥³¥í¥ó (:) ¤Ç¶èÀÚ¤ê¤Þ¤¹¡£ ¤·¤¿¤¬¤Ã¤Æ path ¤Î°ìÈÌ·Á¼°¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

.:<your_path>

¥Ñ¥¹¤Î»ØÄêÎ㡧

.:/home/avh/classes:/usr/local/java/classes

-extdirsdirs
¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿³ÈÄ¥µ¡Ç½¤ò¸¡º÷¤¹¤ë¾ì½ê¤ò»ØÄꤷ¤Þ¤¹¡£¥Ç¥Õ¥©¥ë¥È¤Î³ÈÄ¥µ¡Ç½¤Î¾ì½ê¤Ï jre/lib/ext ¤Ç¤¹¡£
-help
javap ¤Î¥Ø¥ë¥×¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤Þ¤¹¡£
-J flag
¼Â¹Ô»þ¥·¥¹¥Æ¥à¤ËľÀÜÅϤ¹¥Õ¥é¥°¤ò»ØÄꤷ¤Þ¤¹¡£

example% javap -J-version

example% javap -JJ-Djava.security.manager \
-Djava.security.policy=MyPolicy MyClassName

-l
¹Ô¤È¶É½êÊÑ¿ô¥Æ¡¼¥Ö¥ë¤òɽ¼¨¤·¤Þ¤¹¡£
-package
package ¡¢ protected ¡¢¤ª¤è¤Ó public ¤Î¥¯¥é¥¹¤È¥á¥ó¥Ð¤À¤±¤òɽ¼¨¤·¤Þ¤¹¡£ ¤³¤Î»ØÄ꤬¥Ç¥Õ¥©¥ë¥È¤Ç¤¹¡£
-private
¤¹¤Ù¤Æ¤Î¥¯¥é¥¹¤È¥á¥ó¥Ð¤òɽ¼¨¤·¤Þ¤¹¡£
-protected
protected ¤ª¤è¤Ó public ¤Î¥¯¥é¥¹¤È¥á¥ó¥Ð¤À¤±¤òɽ¼¨¤·¤Þ¤¹¡£
-public
public ¤Î¥¯¥é¥¹¤È¥á¥ó¥Ð¤À¤±¤òɽ¼¨¤·¤Þ¤¹¡£
-s
ÆâÉô·¿¥·¥°¥Ë¥Á¥ã¡¼¤ò½ÐÎϤ·¤Þ¤¹¡£
-verbose
¥á¥½¥Ã¥É¤Î¥¹¥¿¥Ã¥¯¥µ¥¤¥º¡¢¤ª¤è¤Ó local ¤È arg ¤Î¿ô¤ò½ÐÎϤ·¤Þ¤¹¡£
 

´Ä¶­

CLASSPATH
¥æ¡¼¥¶ÄêµÁ¥¯¥é¥¹¤Ø¤Î¥Ñ¥¹¤ò¥·¥¹¥Æ¥à¤ËÄÌÃΤ¹¤ë¤¿¤á¤Ë»ÈÍѤ·¤Þ¤¹¡£ Ê£¿ô¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄꤹ¤ë¾ì¹ç¤Ï¥³¥í¥ó¤Ç¶èÀÚ¤ê¤Þ¤¹¡£ °Ê²¼¤ËÎã¤ò¼¨¤·¤Þ¤¹¡£

.:/home/avh/classes:/usr/local/java/classes
 

´ØÏ¢¹àÌÜ

java(1)¡¢ javac(1)¡¢ javadoc(1)¡¢ javah(1)¡¢ jdb(1)


 

Index

̾Á°
·Á¼°
µ¡Ç½ÀâÌÀ
¥ª¥×¥·¥ç¥ó
´Ä¶­
´ØÏ¢¹àÌÜ

This document was created by man2html, using the manual pages.
Time: 08:12:11 GMT, November 04, 2024