NoClassDefFoundError & NumberFormatException - Newbie Question

Edouard G. Parmelan Edouard.Parmelan at
Thu Dec 30 08:20:56 PST 1999

Jeff Sinason wrote:

> java.lang.NoClassDefFoundError: test2/class
> I've tried this with Kaffe, Blackdown and the IBM JDK all with the
> same results.  My guess is that something is missing on my system but
> I don't have a clue.

Remove .class extention, java need the name of the class, not the name
of the class file as in:

    $ java test2

> Given that I decided to try an applet..... Here's the source for it:
> Again, it compiles fine.  However when I run it I get the
> NumberFormatException message.  I tried this with all 3 JDKs also.

Work fine with this welcome.html file:
    <applet code="Welcome.class" width=200 height=200>

    $ appletviewer welcome.html

Hope this help
Edouard G. Parmelan

More information about the kaffe mailing list