[4929] in java-interest

home help back first fref pref prev next nref lref last post

Re: How to use JAVAP

daemon@ATHENA.MIT.EDU (Calvin Austin - Sun UK - Product )
Mon Jan 22 21:45:33 1996

From: Calvin.Austin@UK.Sun.COM (Calvin Austin - Sun UK -  Product Support Engineer)
To: ichiro.kato@ac.com (ichiro.kato)
Date: Mon, 22 Jan 1996 11:43:07 +0000 (GMT)
Cc: java-interest@java.Eng.Sun.COM
In-Reply-To: <9601202300.AA2286@CServe-Hub4.inhouse.compuserve.com> from "ichiro.kato" at Jan 20, 96 06:47:09 am

I have only been able to use javap with my own user classes, the system classes
such as applet don't seem to want to print whatever I do.

If the class resides in the current directory I only need to do javap classname,
if the class is in a different directory I get the "NoClassdef" error message
unless I also add the JDK class path to the classpath list,

eg
javap graph in graphs directory works with no CLASSPATH set or -classpath
set


In a different directory

corn% javap -classpath /home/calvin/java/ graph
Signalled error "NoClassDefFoundError" with detail "java/applet/Applet"
Can't find class graph


corn% javap -classpath /home/calvin/java:/home/calvin/java/dev/JDK/classes graph
Compiled from graph.java
public class graph extends java.applet.Applet {
    GraphicsCards cards;
    public void init();
    public boolean action(java.awt.Event,java.lang.Object);
    public static void main(java.lang.String []);
    public graph();
}


If anyone knows how or why the system classes do not print I would also
like to know

regards
calvin

>
>I've been trying to execute Javap, but this doesn't work.
>With or without specifying directory,
>All I receive is a message that says "Can't find class xxx.class", or "Signaled 
>error "NoClassDefFoundError with detail "java.applet.Applet" ".
>Does anybody know why?
>
>
>Ichiro Kato
>
>-
>This message was sent to the java-interest mailing list
>Info: send 'help' to java-interest-request@java.sun.com
>

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post