Exception in thread "main" java.lang.NoClassDefFoundError

OK, I'm going to be really dumb, here.

I'm completely new toJAVA and am trying to teach myself using theJ2EE Tutorial found on the http://www.sun.com website.

Basically, I've created a*.java file and compiled it fine. However, when I try to run the file I get the following error.

Exception in thread "main" java.lang.NoClassDefFoundError: echo (wrong name: Echo)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$100(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Put simply, I don't have the first clue what to look for, where to go, or what might be wrong with the file. I also don't know what other information may be of use to anyone who can help me.

[1358 byte] By [daadsheada] at [2007-10-1 18:18:42]
# 1

You may want to start with some basic tutorials.

http://java.sun.com/docs/books/tutorial/

This particular error message occurred because you specified a class name of echo, but the class that Java found is named Echo. Java is case sensitive. You may need to remind yourself of that several times.

atmguya at 2007-7-11 13:06:54 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Many thanks, atmguy. This - of course - just goes to show that if you read things properly, things work much better. A lesson I have already tried to learn, but that clerly has not gone in yet! Thanks, again. Signed - a bit of a twit!
daadsheada at 2007-7-11 13:06:54 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...