如何在 Windows 下增加 sbt 运行 的 JVM 堆大小?

How can I increase the JVM heapsize for sbt run under Windows?

我已经查看了相关答案,但它们都是 Unix 并且都是完整配置。

目前,如果我需要更多堆,我会 运行 我的应用程序来自批处理文件:

call scala -J-Xmx1200m -cp target\scala-2.11\classes Start

我可以对 sbt 运行 做同样的事情吗?

根据 Ardi Goxhaj 的评论,有效的批处理文件:

set JAVA_OPTS=-Xmx1200m
call sbt run