title: Create a runnable jar using ant and genJar
body: <p>I have written the following ant target:</p>
  
  <pre><code>&lt;target name="approval_request_parser_compile"&gt;
          &lt;taskdef resource="genjar.properties" classpath="GenJar.jar"/&gt;
          &lt;genjar jarfile="prod/lib/approvalRequestParser.jar"&gt;
  
              &lt;class&gt;
                  &lt;fileset dir="."&gt;
                   &lt;include name="com.bet.Check.class"/&gt;
                      &lt;include name="com.bet.Approve.class"/&gt;
                      &lt;include name="com.bet.CheckText.class"/&gt;
                      &lt;include name="com.bet.Request.class"/&gt;
                      &lt;include name="com.bet.ApprovalRequestParser.class"/&gt; #contains the main method
                  &lt;/fileset&gt;
              &lt;/class&gt;
              &lt;classpath&gt;
                  &lt;fileset dir="lib"&gt;
                      &lt;include name="*.jar" /&gt;
                  &lt;/fileset&gt;
                  &lt;pathelement path="."/&gt;
              &lt;/classpath&gt;
          &lt;/genjar&gt;
      &lt;/target&gt;
  </code></pre>
  
  <p>The jar is created successfully, but when I go to /prod/lib and I type:</p>
  
  <pre><code>java -jar approvalRequestParser.jar
  </code></pre>
  
  <p>this error is raised:</p>
  
  <pre><code>no main manifest attribute, in approvalRequestParser.jar
  </code></pre>
  
  <p>Any ideas?</p>