Scala sbt

If you’re following the Coursera Scala course, you may come across this problem during the example assignment:

cd example


> console

[error] java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space

(Lots of [info] stuff omitted for readability.)

The nicest way I found to get around this (on a Mac) is to create the file ~/.sbtconfig containing:

export SBT_OPTS=-XX:MaxPermSize=128M

That cured the problem and is safer than hacking /usr/local/bin/sbt.

You may also hit a problem where Eclipse does not have the Run configuration for Scala (the forums are full of comments about this). A workaround is to install vanilla (classic) Eclipse and plugins manually.

Now you should have “Run as Scala Application” as the second option in the Run menu.

(via Ray Sutton’s post in the forum.)

This entry was posted in Computing, Planet, Research and tagged , , , , , , . Bookmark the permalink.

2 Responses to Scala sbt