Why I can't execute scala file?

前端 未结 9 2078
日久生厌
日久生厌 2020-12-10 02:49

I am a newbie to Scala, it\'s the first time I\'m running Scala, when I installed Scala, I created a file named Hello.scala, the content is:

pr         


        
9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 03:17

    This works in mac for development.

    #!/usr/bin/env scala -nc
    println("hello");
    

提交回复
热议问题