How to compile standalone scala
Just starting to learn scala.. I can't seem to figure out how to compile something into a standalone application. I think I开发者_Python百科 almost have a working .jar file, but keep getting a Main-Class error even though it's in the manifest,
Scala programs require at a minimum the scala-library.jar
file that accompanied the Scala Development Kit whose compiler you used to compile the sources. This is in addition to any 3rd-party Java (or Scala) libraries you might use. So from the perspective of building a stand-alone application (i.e., one that can be launched with a java -jar ...
command) you must treat the scala-library.jar
like a 3rd-party library.
精彩评论