title: java applet export a jar file as an standalone executable
body: <p>I've been looking around for the solution but no one can solve the question I have.</p>
  
  <p>I have an applet created by using eclipse and I would like to export it as a jar file so that others can use it easily.</p>
  
  <p>The way I used for generating .jar file is in the following steps:</p>
  
  <pre><code>right click the project --&gt; select export --&gt; select JAR file --&gt; next....
  </code></pre>
  
  <p>The jar file can be generated, however, when I use the command line to execute this jar</p>
  
  <pre><code>java -jar xxxx.jar
  </code></pre>
  
  <p>I got the error</p>
  
  <pre><code>no main manifest attribute, in test.jar
  </code></pre>
  
  <p>in the applet, I have no </p>
  
  <pre><code>public static void main(String args[])
  </code></pre>
  
  <p>while it should start with init().</p>
  
  <p>And from what I've found so far, it seems like I have to add a manifest myself.</p>
  
  <p>Please let me know how to fix this.</p>