title: "no swt-win32 in java.library.path" on runtime jar
body: <p>I am new to Java &amp; Eclipse.  I have a window-based app with dialogs, that works fine inside of the IDE.  However, when I try to export a JAR to make it executable outside the IDE (and thus redistributable), I execute it with the command:</p>
  
  <pre><code>java -jar MyLibrary-app.jar
  </code></pre>
  
  <p>I get the exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
          no swt-win32-4427 in java.library.path
          no swt-win32 in java.library.path
          Can't load library: C:\Users\jay.imerman\.swt\lib\win32\x86\swt-win32-4427.dll
          Can't load library: C:\Users\jay.imerman\.swt\lib\win32\x86\swt-win32.dll
      at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
      at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
      at org.eclipse.swt.internal.C.&lt;clinit&gt;(C.java:21)
      at org.eclipse.swt.widgets.Display.&lt;clinit&gt;(Display.java:138)
      at org.jimerman.MyLibrary.MainWindow.open(MainWindow.java:51)
      at org.jimerman.MyLibrary.MainWindow.main(MainWindow.java:40)
  </code></pre>
  
  <p>I don't know what the difference is between exporting a JAR and a Runnable JAR, I tried both.  On the former, I also tried including the src from the swt project, as well as another Java class library project that I reference.  I am used to visual Studio, and the Setup project, which detects dependencies and collects references for a deployment.  What am I missing?  If I were to use something like Maven, how do I even go about learning what all the terminology and concepts are, to even understand what it means and what I need to build a redistributable file?</p>