Quantcast
Channel: Bagel Belly Blog » development
Viewing all articles
Browse latest Browse all 11

Scala sbt

$
0
0

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

cd example

sbt

> 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.)


Viewing all articles
Browse latest Browse all 11

Trending Articles