title: Could not find or load main class: what steps are next for debugging?
body: <p>I know there are many posts on this. I have tried the advice on those threads. </p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/7647448/could-not-find-or-load-main-class">Could not find or load main class</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/18093928/what-does-could-not-find-or-load-main-class-mean">What does &quot;Could not find or load main class&quot; mean?</a></p></li>
  </ul>
  
  <p>I compile a class like this... (it creates a NER_Sample.class file)</p>
  
  <pre><code>javac -cp "jar1:jar2:nlp:" NER_Sample.java
  </code></pre>
  
  <p>Then I try to run it like this</p>
  
  <pre><code>java -cp "jar1:jar2:nlp:" NER_Sample englishPCFG.ser.gz parser/data/testsent.txt
  </code></pre>
  
  <p>I get <code>Could not find or load main class NER_Sample</code></p>
  
  <p>NER_Sample has the declaration <code>package nlp;</code></p>
  
  <p>But this gives the same error</p>
  
  <pre><code>java -cp "jar1:jar2:nlp:" nlp.NER_Sample englishPCFG.ser.gz parser/data/testsent.txt
  </code></pre>
  
  <p>What do I try next?</p>