Please tell Why m I getting this Error msg

I am new to java programming so please help me out with this

My java program is getting compiled but its not running.Everytime i run any program on my machine the same message appears-->

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

The same programs are running on other machines but not on mine.

I'm using j2sdk1.4.2_12

[380 byte] By [nakul.hotjavaa] at [2007-10-3 8:14:38]
# 1
It's a Classpath problem, most likely. Usejava -cp . ClassNameRemeber that java is case sensitive and that the argument is the class name so it should not end with .class or .java.
atmguya at 2007-7-15 3:19:33 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...