title: classpath - running a java program from the command line
body: <p>My code compiled fine with the following command:</p>
  <p><code>javac -cp &quot;../lib/*&quot; AvroReader.java </code></p>
  <p>(lib is where i put my jar files)</p>
  <p>At run time I get a <code>ClassNotFoundException</code> on the following line:</p>
  <p><code>DatumReader&lt;?&gt; dtmrdr = new GenericDatumReader();</code></p>
  <p>It says it can't find <code>org.apache.avro.generic.GenericDatumReader</code> even though I've imported it.</p>
  <p>Why is this happening?</p>