Exception in thread "main" java.lang.NoClassDefFound
I did not write this code and it should run standalone.
Printable View
Exception in thread "main" java.lang.NoClassDefFound
I did not write this code and it should run standalone.
a
Gettin the same problem with win98 laptop while same code works fine on win95 machine. Some body please shed light
sounds like you haven't declared
public static void main(String args[])
{
}
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