Exception in thread

Hi, i have a program called Hello.java

after that i try to compile with the code of:

c:\ Javac Hello.java

it's fine.

but when i try run the program with code:

c:\java Hello

it happened this way

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

And i try

c:\java -cp . Hello

then it's fine and able to run.

So, what is the problem?

thank..

[471 byte] By [lyyhhha] at [2007-10-2 14:07:15]
# 1
Do you have CLASSPATH environment variable set? Refer to: http://blogs.sun.com/roller/page/sundararajan?entry=java_class_ic_errors
sundararajan.aa at 2007-7-13 12:18:04 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...