title: How to specify a different main class when running a scala jar on the command line?
body: <p>I have a scala project with 2 objects that extend <code>App</code>. I have specified one as the main class in <code>build.sbt</code>. I'm using <code>assembly</code> to build a fat jar.</p>
  
  <p>How can I execute the non-default main class when running the jar on the command line? I.e. if <code>com.example.app1</code> is specified as the main class in <code>build.sbt</code>, how could I run <code>com.example.app2</code> from the command line using the jar (assuming that also extends <code>App</code>)?</p>
  
  <p>This will be in a production environment where I won't have <code>sbt</code>.</p>