Java run time error
<p>I have this problem when I run my program in java.However I have main method ,I have saved My file with the name of MyClass and run it in a right path.thanks in advance..</p>

<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError:MyClass
caused by:java.lang.classNotFoundException:MyClass
at java.net.URLClassLoader$1.run(Unknown sourse)
at java.security.AccessCountroller.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown sourse)
at java.lang.ClassLoader.loadClass(Unknown sourse)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown sourse)
at java.lang.ClassLoader.loadClass(Unknown sourse)
could not find the main class:Myclass.program will exit
</code></pre>
