run a scala program through shell script [on hold]

object Project {
  def main(args: Array[String]) {
    println("Hello")
  }
}

I am calling the above scala class from a shell script and it does not work.

#!/bin/sh
exec scala -classpath '.:project.jar' "$0" "[email protected]"
!#
RUN Project

Any advise how to call a scala class from a shell script?

Source: StackOverflow