[thelist] Java: basic help?

Hassan Schroeder hassan at webtuitive.com
Fri Sep 20 09:31:01 CDT 2002

Frank wrote:

> --
> C:\JavaProjects>java HelloWorld
> Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld

This means the JVM can't find the "HelloWorld" class; either it's
not in the directory you're trying to run it from or it's misnamed;
the file name and the class name *including case* must match.

HelloWorld.class must contain the matching "class HelloWorld { ...",
and "helloworld.class" -- even under DOS -- is *not* the same!

Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

     -- creating dynamic Web sites and applications since 1994 --

More information about the thelist mailing list