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

[code]

public class Helloworld

{

public static void main(String[] args)

{

System.out.println("Hello World!");

}

}

[/code]

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 "[i]java.lang.NoClassDefFoundError[/i]" 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

[1266 byte] By [CruxBlacka] at [2008-2-7]
# 1
Duplicate post.
TimRyanNZa at 2007-7-9 > top of java,BigAdmin,Troubleshoot...