title: How to build a jar for Mac OS X 10.6 from windows?
body: <p>I have some problem with my java application, I did build it with Eclipse under Win7 (64bit): it does not work on Snow Leopard 10.6.8. The error is: <code>"The JAR file .... could not be launched".</code></p>
  
  <p>I have checked if Java was installed on Mac and yes, there is JRE with the 64 bit option first to execute.</p>
  
  <p>My Application does not make use of any particular library:</p>
  
  <pre><code>import java.net.*;
  import java.io.IOException;
  import javax.swing.*;
  import java.awt.*;
  import java.awt.event.*;
  </code></pre>
  
  <p>.. so I really can't understand why it doesn't work on Mac, any suggestion? Many thanks for your help</p>
  
  <p><strong>UPDATE:</strong>
  Yes, it works on Windows, I use Java 6 and unfortunately I don't have OS X, I've sent my application to a friend who has OS X, so I can't open the Terminal (and my friend never opened it probably...). Thanks for your suggestions anyway.</p>
  
  <p><strong>UPDATE2:This is the output message</strong></p>
  
  <pre><code>13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]     Exception
  in thread "main"
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]     java.lang.UnsupportedClassVersionError:
  Main : Unsupported major.minor version 51.0
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.lang.ClassLoader.defineClass1(Native Method)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.lang.ClassLoader.defineClass(ClassLoader.java:615)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.net.URLClassLoader$1.run(URLClassLoader.java:197)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.security.AccessController.doPrivileged(Native Method)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.net.URLClassLoader.findClass(URLClassLoader.java:190)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
  13/03/12 19.09.30       [0x0-0x2d52d5].com.apple.JarLauncher[44675]             at
  java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  </code></pre>