Click to See Complete Forum and Search --> : NoClassDefFound. Why?


Ed_CompSci
March 4th, 2000, 01:53 AM
Exception in thread "main" java.lang.NoClassDefFound

I did not write this code and it should run standalone.

March 4th, 2000, 08:46 PM
a

March 4th, 2000, 08:48 PM
Gettin the same problem with win98 laptop while same code works fine on win95 machine. Some body please shed light

Erik
March 4th, 2000, 10:00 PM
sounds like you haven't declared
public static void main(String args[])
{


}

vaishali.v
March 7th, 2000, 03:58 AM
As said by Mr Erik the answer can be, to declare the " public static void "
for the main {} class
But it is for an "Application "

If we are writing an "Applet", then we are not writing any main{} class as such
I also faced this same error while writing an aplet.

I just checked for the "public ststic" declaration, for all the classes which are reffered, somewhere else in my code.

but I need some more clarification about this.

thanks.
vaishali