title: Generated Runnable jar: Could not find the main class
body: <p>I've always used the Export -> Runnable jar option of Eclipse and it has worked perfectly, but today it seems that all the Runnable jars I create produce the following error <strong>when I run them</strong>: <em>(Edit: run them by double clicking the file.)</em></p>
  
  <p><code>Java Virtual Machide Launcher</code></p>
  
  <p><code>Could not find the main class: (class). Program will exit.</code></p>
  
  <p>I've tried everything for the past two hours, but it still doesn't work.</p>
  
  <ul>
  <li>I can still run jars that I have created in the past without a
  problem. </li>
  <li>The manifest file looks exactly the same as in those jars
  that work and all the <code>.class</code> files seem to be in place... </li>
  <li>I've tried exporting with <code>Package required libraries into generated jar</code> but the file still doesn't work. <strong>It doesn't show the error though - double clicking the file does nothing.</strong></li>
  </ul>
  
  <p><strong>Edit</strong>: Running the jar file through the <code>cmd</code> works perfectly, but simply double clicking on it yields this error. (<em>Bragboy</em>)</p>
  
  <p><strong>Edit 2:</strong>
  Contents of a manifest file from a jar that works: (Obviously they're the same, just wanted to avoid confusion.)</p>
  
  <blockquote>
    <p>Manifest-Version: 1.0<br/>
    Class-Path: .<br/>
    Main-Class: defender.DefenderComponent (+ two empty lines afterwards)</p>
  </blockquote>
  
  <p>And contents of a manifest file from a jar that doesn't work: (When opening the file directly)</p>
  
  <blockquote>
    <p>Manifest-Version: 1.0<br/>
    Class-Path: .<br/>
    Main-Class: pixel.Entry (+ two empty lines afterwards)</p>
  </blockquote>
  
  <p>Both main class files are confirmed to be at their respective locations.</p>