title: Create an executable jar for Swing app
body: <p>I have created a Java application called <code>App.java</code>. It uses GSON. Hence I created a jar <code>gson.jar</code> and then created a manifest file (<code>manifest.mf</code>) with the following content.</p>
  
  <pre><code>Manifest-Version: 1.0
  Class-Path: test.jar gson.jar
  Main-Class: App
  </code></pre>
  
  <p>I then created the test.jar using the following command:</p>
  
  <pre><code>jar cfm test.jar manifest.mf *
  </code></pre>
  
  <p>Edit: <code>jar cfm test.jar manifest.mf *</code> <strong>is producing the jar</strong> but nowhere to be seen on the disk. </p>
  
  <p>and run it using </p>
  
  <pre><code>java -jar test.jar
  </code></pre>
  
  <p>The application throws <code>ClassNotFoundException</code> for <code>ExitListener</code>. When the code that uses <code>ExitListner</code> is removed, it runs normal as it were run using java App. What am I missing?</p>