Running Barnes Hut example

I downloaded onto a cluster and am trying to run BarnesHut.scala ( I’m trying to run it from the command line. What commands do I need to run and from what directory in this path? I’m very new to scala and am having a hard time understanding the package and compilation systems. Thanks!