title: Using emmarun (main method not found)
body: <p>I have an ultra simple file in an empty directory:</p>
  
  <pre><code>public class Test {
      public static void main(String[] args) {
          System.out.println("Test");
      }
  }
  </code></pre>
  
  <p>And the following works as expected</p>
  
  <pre><code>javac Test.java
  java Test
  &gt; Test
  </code></pre>
  
  <p>I am on Mac OS X, using emma-2.0.5312 and java 1.7.0_40</p>
  
  <p>emma.jar has been installed to /Library/Java/Extensions, so this works</p>
  
  <pre><code>java emmarun
  </code></pre>
  
  <p>(it displays the help for using emmarun)</p>
  
  <p>Next I run</p>
  
  <pre><code>java emmarun -cp . Test
  </code></pre>
  
  <p>And I get the error:</p>
  
  <pre><code>emmarun: [MAIN_METHOD_NOT_FOUND] application class [Test] does not have a runnable public main() method
  Exception in thread "main" com.vladium.emma.EMMARuntimeException: [MAIN_METHOD_NOT_FOUND] application class [Test] does not have a runnable public main() method
      at com.vladium.emma.rt.AppRunner._run(AppRunner.java:497)
      at com.vladium.emma.rt.AppRunner.run(AppRunner.java:97)
      at com.vladium.emma.runCommand.run(runCommand.java:247)
      at emmarun.main(emmarun.java:27)
  Caused by: java.lang.VerifyError: Expecting a stackmap frame at branch target 11
  </code></pre>
  
  <p>What causes this? Clearly it does have a public, accessible main method, so why can't emma find it?</p>