Ubuntu + scala REPL, Commands not typed on console

前端 未结 6 637
故里飘歌
故里飘歌 2021-02-05 00:46

I am using Ubuntu 18.04 + Scala 2.11.12 (OpenJDK 64-Bit Server VM, Java 1.8.0_162).

Once I open the scala shell, I am not able to see anything that I type. It gets typed

6条回答
  •  别跟我提以往
    2021-02-05 01:35

    Install SBT:

    echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
    sudo apt-get update
    sudo apt-get install sbt
    

    Then Type sbt on the command prompt:

    Then Type console

    Good to go.

    Test: type: printf("Hello Scala")

    Cheers!!!

提交回复
热议问题