title: How to do Eclipse's "export jar" from the command line
body: <p>In my workflow for creating a jar to distribute my code, I currently:</p>
  
  <ol>
  <li>right-click on my project in Eclipse</li>
  <li>select "Export"</li>
  <li>select "JAR file"</li>
  <li>uncheck the top-level files like .classpath, .project</li>
  <li>check only "export generated class files"</li>
  <li>click "finish"</li>
  </ol>
  
  <p>This ensures the .class files are up-to-date and creates the jar. I would like to do this same thing from the command line, but most documentation for creating jars seems to be just jarring up files that already exist, without the phase of creating the .class files. How can I do this from the command line?</p>