Scala throws an exception when I try to launch it on ubuntu

I am trying to launch scala on Ubuntu 16.04.3. I installed java and scala but when I type scala in the terminal, all of a sudden it throws an exception. Step 1: Installating Java and Scala First, I