Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: NoClassDefFoundError....What' s Wrong ?
|
Posted: Jun 8, 2002 10:16 PM
|
|
My guess is that you are doing this:
java Welcome[b].java[/b] or this:
java Welcome[b].class[/b] instead of this:
java Welcome They did a lot of very clever things with java, but one of the bone-head stupid things about it is the fact that it won't infer the right class name if you add an extension to the file. It won't even give you a useful error message like: "The java command doesn't know that you want to use the class file Welcome.class, even though you specified Welcome.class on the command line, because it was expecting just the class name without a file extension (really, it tried to find a class called 'class' in a package called 'Welcome'), so try typing in 'java Welcome' and things should work fine."
|
|