running java application from command line
<p>I have an eclipse project which I want to run from the command line in ubuntu. After searching on the internet I am trying the following command.</p>

<pre><code>java -cp . com.abc.utils.MyClassName
</code></pre>

<p>I issue this command from the directory that eclipse is using to store all the class files. But I get this error:</p>

<blockquote>
  <p>Exception in thread "main" java.lang.NoClassDefFoundError: com/abc/utils/MyClassName</p>
</blockquote>

<p>what am I doing wrong and how to run the application from the command line ?</p>
