Where to buy a can that provides scala.tools.nsc.MainGenericRunner

I have my elevator project. I have a file called LiftConsole.scala. It was created when creating the script project and contains the following

import _root_.bootstrap.liftweb.Boot
import _root_.scala.tools.nsc.MainGenericRunner

object LiftConsole {
  def main(args : Array[String]) {
    // Instantiate your project Boot file
    val b = new Boot()
    // Boot your project
    b.boot
    // Now run the MainGenericRunner to get your repl
    MainGenericRunner.main(args)
    // After the repl exits, then exit the scala script
    exit(0)
  }
}

It seems that the purpose of this file is to allow the user to interact with the console within the project. I would like to, but I could never do this because I cannot find a jar for MainGenericRunner. Does anyone know where to get it?

My goal is to be able to initialize the console, all the parameters of the project, so that I can execute the project code.

+3
source share
1 answer

This is the part scala-compiler.jar. You can find it with the rest of the Scala distribution. Add this to your project:

val scalaCompiler = "org.scala-lang" % "scala-compiler" % "2.8.1"
+5
source

All Articles