This is the most common exception for the new java developers. Your
current path is not defined in class path variable so thats why the
error comes. Please type the following line at prompt before running
your program
SET CLASSPATH=%CLASSPATH%;\.
here I typed the dot means your current directory on the classpath
now and now your class is on the path run it and enjoy.
Let me know, is you problem resolved??