In windows for sbt 0.13.9.2 you need to set JAVA_OPTS in the jvm parameters you want.
> set JAVA_OPTS=-Xmx1G > sbt assembly
sbt.bat script loads the default values ββfrom conf\sbtconfig.txt into CFG_OPTS , but will use JAVA_OPTS .
Relevant excerpts from sbt.bat :
rem FIRST we load the config file of extra options. set FN=%SBT_HOME%\..\conf\sbtconfig.txt set CFG_OPTS= FOR /F "tokens=* eol=# usebackq delims=" %%i IN ("%FN%") DO ( set DO_NOT_REUSE_ME=%%i rem ZOMG (Part
., (skip).,.
rem We use the value of the JAVA_OPTS environment variable if defined, rather than the config. set _JAVA_OPTS=%JAVA_OPTS% if "%_JAVA_OPTS%"=="" set _JAVA_OPTS=%CFG_OPTS% :run "%_JAVACMD%" %_JAVA_OPTS% %SBT_OPTS% -cp "%SBT_HOME%sbt-launch.jar" xsbt.boot.Boot %*
Choy Jan 20 '16 at 15:53 2016-01-20 15:53
source share