Two possible reasons:
1. Improper ClassPath setup... see my previous message to set your
path.
2. Improper spelling. Ensure you use the exact same captilization
when naming your class, saving it to file, and running it...
Well those are the 8-9 out of 10 reasons you get a
NoClassDefFoundError.