title: Java creating runnable .jar
body: <p>I am trying to export my GUI project as runnable jar file from eclipse. I have selected the main class and created the run configuration. For some reason, when i am trying to start the program by double clicking on it, i got the following error message from JVM Launcher: </p>
  
  <p><strong>" Could not find the main class, the program will exit "</strong> </p>
  
  <pre><code>public class Main {
  
  
  public static void main (String[] args)
  {
      JFrame fr = new JFrame();
      fr.setSize(300,300);
      fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      fr.setVisible(true);
  }}
  </code></pre>
  
  <p>I created this simple test for the issue, i got the same message. <code>Main</code> is in a source folder "src" in default package. At Run Configurations, i simply selected the project, and i selected this class as main class.</p>
  
  <p>Thanks </p>