title: SWT, packaging jar
body: <p>I made simple jar for my java-application (build with SWT).
  In netbeans it starts normal, as it need to be.
  But when I'm starting it with <strong>java -jar [jarName]</strong>, I have such error:</p>
  
  <pre><code>java -jar jarname.jar 
  Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Composite
      at roxed.Main.main(Main.java:15)
  Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Composite
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      ... 1 more
  </code></pre>
  
  <p>I have downloaded SWT from <a href="http://eclipse.org/swt" rel="nofollow">http://eclipse.org/swt</a> (linux build), unpacked jar and added this folder to the project.</p>
  
  <p>Could someone to say, why I cannot execute it not from IDE?</p>