how to run main class use sbt

1. under Linux console:

sbt “show discoveredMainClasses”

sbt “runMain <mainClass> args*”

2. in sbt console:

sbt>> show discoveredMainClasses

sbt>>  runMain <mainClass>  args*

 

 

 

Leave a Reply