java.lang.NoClassDefFoundError
That's the error message i get in the runtime mode.
I'm sure most of you guys had experienced that error since it actually come up in my Helloworld program...-_-'
yes, i am a beginner in Java, had a little c++ basics, but i'm not too familiar with Java, still learning now...hope to study it a little better, so...hope i can learn a lot from you guys =)
Anyway, bout the error...
It happened in my helloworld program below
public class Helloworld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
I thought it was because i didn't put a constructor in it. I try to put 1, but nothing changed. Though i thought a main program doesnt need a constructor, since no object is gonna call the main program anyway, but well, no harm in trying right =P
So, can anyone help me?
Sorry if my english bit slank =P
My question review :
1> why did the error message "java.lang.NoClassDefFoundError" appear in my helloworld program?
2> Does a main class need to have a constructor?
Hope to hear positive comment and replies to my questions from allllll u guys =)
thanks for da help yo...=D

