title: Jar works on another computer, not one that created it
body: <p>I have created a simple java swing program in NetBeans.  After I finish with the code I do the "Clean and Build Main Project" and get a jar file.  </p>
  
  <p>I then try to run it and I get "Could not find main class"  But when I run it through the console it works fine.  So I copy all of the files that NetBeans created and put them on a flash drive and took them to a laptop.  I got the same message on the laptop so I looked at the manifest.mf.  I added the line with the main class and where it was located and it actually worked.  I would double click the jar and it worked perfectly.  </p>
  
  <p>So I thought I could go back to the computer that created the project and make the EXACT same changes and it would work.  I was wrong, I got the "Could not find the main class" error again.  </p>
  
  <p>I really don't understand this because of the following:</p>
  
  <p><strong>Both computers are running Windows 7</strong></p>
  
  <p><strong>Both computers are running the same version of Java</strong></p>
  
  <p><strong>Both computers have the EXACT same directories where the jar file is</strong></p>
  
  <p><strong>Both computers have the EXACT same files including manifest.mf</strong></p>
  
  <p><strong>Both computers have the same PATH and CLASS PATH in the environment variables section</strong></p>
  
  <p>It just seems really odd that the computer I created this program with can not run it via double click but another one can.  <strong>Is there another setting on the computer that might be preventing it from running the jar via double click?</strong></p>
  
  <p>EDIT: Got the "Could not find main class" error fixed by updating to the latest java.  I just tested it on another desktop pc by zipping the folder and it ran fine with double click.  I can run the jar from the console fine (on original pc), but when I double click..the cursor changes to the waiting symbol for a half second then stops and nothing else happens.  The java versions are the same, paths are the same, and the jar file is being opened by Java(TM)Platform SE binary.  Is there something I am missing?</p>