title: Could not find or load the main class after build
body: <p>My Java program works fine where I hit the button run or debug <img src="https://i.imgur.com/Xc9lAvJ.jpg" alt="run debug"> in eclipse mars.</p>
  
  <p>Actually I have a main class with main function</p>
  
  <pre><code>public class Main extends JFrame 
  {
     public static void main(String[] args) throws IOException, URISyntaxException {...}
  }
  </code></pre>
  
  <p>But when I build it I have the error "could not find or load the main class" (in french)
  <img src="https://i.imgur.com/45PwDu9.png" alt="command prompt"></p>
  
  <p>Here is my run configuration:
  <img src="https://i.imgur.com/yaFSoZR.png" alt="run config"></p>
  
  <p>And I use it where I build the program to runable jar file (.jar) 
  <img src="https://i.imgur.com/DzJkCSm.png" alt="build config"></p>
  
  <p>EDIT 1:</p>
  
  <p>After a comment I search how to create an automatic manifest file with eclipse, I create it but it doesn't solve the issue. Here is the content of the manifest file:</p>
  
  <pre><code>Manifest-Version: 1.0
  Main-Class: Main
  </code></pre>
  
  <p>My Main class is located in default package:</p>
  
  <p><img src="https://i.imgur.com/Uj60vLr.png" alt="main class location"></p>
  
  <p>EDIT 2:</p>
  
  <p>I've located the main class in a package named Launch.
  I've extract the .jar file to see what's inside and the manifest file is here, the content is:</p>
  
  <pre><code>Manifest-Version: 1.0
  Main-Class: Launch.Main
  </code></pre>
  
  <p><img src="https://i.imgur.com/iklGXSv.png" alt="manifest location"></p>