title: How to set the entry point for a jar in command line
body: <p>I have two class files HelloViewer.class and HelloComponent.class. I want to make it so when you run the jar it uses HelloViewer.class as the entry point. At the moment im using.</p>
  
  <pre><code>jar cfe Hello.jar main HelloViewer.class *.class
  </code></pre>
  
  <p>and i have also tried</p>
  
  <pre><code>jar cfe Hello.jar HelloViewer.class HelloViewer.class HelloComponent.class
  </code></pre>
  
  <p>i'm rather confused by this.</p>