Scala repl throws error

Either update to a newer scala version (2.10.3+) or downgrade java to java 6/7. As you have seen in the output, 2.9.2 was here long before java 8 was introduced (Copyright 2002-2011, LAMP/EPFL), so they don’t work well together.

This duplicate question contains exact instructions on ubuntu’s java downgrade.

Leave a Comment