You are getting an Error java.lang.NoClassDefFoundException
This means your OS (Operating System) is unable to find the class. You need to instruct a compiler to check the current directory where you have your generated class file.
For this, you can include . (dot) in your classpath like this.
Right click MyComputer Go to properties / Advance / In CLASSPATH include .;
(dot)
or
set classpath=.;C:\j2sdk\bin;
this dot will help compiler to check for the present directory for class.
try again
java (your class) at command prompt.
You will get output now.