Include jar file in Scala interpreter

后端 未结 7 1111
囚心锁ツ
囚心锁ツ 2020-12-28 14:54

Is it possible to include a jar file run running the Scala interpreter?

My code is working when I compile from scalac:

scalac script.scala -classpath         


        
7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 15:41

    According to scala executable help all options of scalac are allowed , so you can run scala -classpath some.jar, i've just tried and it looks like it works

提交回复
热议问题