Closed mosesn closed 12 years ago
You need to provide the scala compiler with more memory. -Xmx2g should cover it.
I was trying with 1g, and it didn't work. I tried again with 2g, and it still doesn't work. Here is the command I was using:
env JAVA_OPTS="-Xmx2g" sbt publish-local
I got it from stackoverflow. If you know of a better way to set memory, I would be glad to hear it.
Your sbt file is probably overriding the JAVA_OPTS environment.
vim which sbt
(or emacs, or whatever)) and change it there.
err which sbt
good call, I had forgotten the options were specified by the sbt script.
thanks for the help!
The error that I get is: