title: Build one jar per platform for multi-platform SWT application
body: <p>There are a couple of questions to this topic already, but none of them seem to work properly.</p>
  
  <p>Here is a list of them:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/10894483/bulding-an-multi-platform-swt-application-using-ant">Bulding an multi-platform SWT application using Ant</a></li>
  <li><a href="https://stackoverflow.com/questions/22303755/build-multi-platform-executable-for-a-swt-application-elipse">Build multi-platform executable for a SWT application (Eclipse)</a></li>
  <li><a href="https://stackoverflow.com/questions/21285598/build-multi-platform-executable-for-a-swt-application-using-maven">Build multi-platform executable for a SWT application using maven</a></li>
  <li><a href="https://stackoverflow.com/questions/7134219/swt-jar-for-different-platform">SWT jar for different platform</a></li>
  <li><a href="https://stackoverflow.com/questions/2706222/create-cross-platform-java-swt-application">Create cross platform Java SWT Application</a></li>
  </ul>
  
  <p>My requirement is to build an ant script that creates <strong>one jar per platform</strong>, i.e. one for Windows x86, one for Windows x64, Linux x86/x64 and so on.</p>
  
  <p>Does anyone have any further insight?</p>
  
  <p>Using the aforementioned methods, I was not able to produce a workable solution. It either ended with the SWT jar file not automatically being loaded or it not being included in the classpath.</p>
  
  <p>If someone can come up with a working example (ideally including the complete source code), that would be grand!</p>