开发者

How to compile standalone scala

开发者 https://www.devze.com 2023-01-14 15:47 出处:网络
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-C

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消