title: Java Jar Class Not Found Exception
body: <p>I can build my application cleanly on windows and Mac OS X but on windows when i try to run the application i get a class not found exception about my main class</p>
  
  <p>main$4 not found.</p>
  
  <p>class is there and it build cleanly. why can't it locate the class file?
  Jar works in OS X.</p>
  
  <p>Jar is created like the following.</p>
  
  <pre><code>  &lt;target name="jar" depends=""&gt;
    &lt;jar destfile="build/application.jar" &gt; 
      &lt;manifest&gt;
        &lt;attribute name="Built-By" value="Hamza"/&gt;
        &lt;attribute name="Main-Class" value="application"/&gt;
      &lt;/manifest&gt;
      &lt;fileset dir="build"&gt;
        &lt;include name="**/*.class"/&gt;
    &lt;include name="**/*.png"/&gt; 
        &lt;exclude name="**/*.jar"/&gt;
      &lt;/fileset&gt;
    &lt;/jar&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>i can run it without any errors on OS X but in Windows i get class not found exceptions.</p>