How to build, compile and run a Scala project?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to evaluate a Scala project that I have found on Github, namely TRank . I found the build file build.sbt . I managed to install Scala and sbt via homebrew and then run the command sbt run on the project root folder. Doing so ended up with an error: java.lang.RuntimeException: No main class detected. at scala.sys.package$.error(package.scala:27) Now the project files are in the src/main/scala/io/mem0r1es/trank and when I try to compile via scalac or run sbt run there I get a bunch of errors about objects not being members of the