Passing JVM args through sbt

前端 未结 1 1277
Happy的楠姐
Happy的楠姐 2021-01-17 20:31

I\'m trying to add a 3rd party jar to my java library path. If I invoke sbt with -Djava.library.path=a-3rd-party-lib.jar, then it works for the first invoca

1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-17 20:52

    javaOptions only takes effect if you fork run and sbt does not fork by default. See the Forking documentation for details, but forking is enabled for run and runMain with:

    fork in run := true
    

    0 讨论(0)
提交回复
热议问题