title: jar file: main class not found - IntelliJ IDEA
body: <p>I have developed a Java project in the IntelliJ IDEA. When I build the jar artifact like described <a href="http://blogs.jetbrains.com/idea/2010/08/quickly-create-jar-artifact/" rel="nofollow" title="HERE">HERE</a>, everything goes as it is supposed to. But when I double click the generated jar file in the output folder, I get the message:</p>
  
  <blockquote>
    <p>Could not find the main class: DoxCalculator.DoxCalculator. Program
    will exit.</p>
  </blockquote>
  
  <p>(My project and main class are both called <code>DoxCalculator</code>). When I open the <code>jar</code> file with <code>WINRAR</code>, I notice that only my library files are in there, but no compilation output. Strange, because according to the project structure window at the <code>artifacts</code> item, It should be included.</p>
  
  <p>My <code>MANIFEST.MF</code> looks like this:</p>
  
  <pre><code>Manifest-Version: 1.0
  Main-Class: DoxCalculator.DoxCalculator
  </code></pre>
  
  <p>I have searched a lot of questions on the forum, but there seem to be no similar problems asked.</p>