Exception in thread "main" java.lang.NoClassDefFoundError: Example

Hi, im still cannot figure this out....Whats wrong with the RUNNING command or maybe the path.I can do compile the program which is called Example.java

But then after key the command "C:\>java Example" the following message come out :

Exception in thread "main" java.lang.NoClassDefFoundError: Example

What is going on here?What should I check about that?The code is exactly like what it is in the book

[427 byte] By [franc86a] at [2007-11-27 11:41:47]
# 1

Hi,

set classpath=.;

java Example

drvijayy2k2a at 2007-7-29 17:40:14 > top of Java-index,Java Essentials,New To Java...
# 2

Please answer those questions:

1. In what directory are you when you execute 'java Example'

2. Where is the file Example.class

3. What is your CLASSPATH environment variable

4. Does Example.java start with a line like this:

package something;

If yes, tell us what this line exactly says.

baftosa at 2007-7-29 17:40:14 > top of Java-index,Java Essentials,New To Java...