title: couldn't find main class
body: <p>I have 3 GUI forms </p>
  
  <ul>
  <li>main1.java</li>
  <li>main2.java </li>
  <li>main3.java </li>
  </ul>
  
  <p>with main methods. One in <code>package1</code> other two are in <code>package2</code>. </p>
  
  <p>I have set the <code>package1.main1</code> as main class in project configuration. After clean build, when I sent my <code>.jar</code> file to my friend, it shows an error- <code>couldn't find main class</code>. I checked in the manifest file, it seems all correct and also there is not <code>package2</code> inside the jar.</p>
  
  <p>Please help me to fix this.</p>
  
  <p>FYI, I'm using netbeans7.2</p>