Sbt 0.13 ScriptEngine is Null for getEngineByName(“scala”) -
i have problem in using scriptengine sbt 0.13.8
build.sbt
fork in run := true scalaversion := "2.11.6" librarydependencies ++= seq( "org.scala-lang" % "scala-compiler" % "2.11.6" )
useconfig.scala
object useconfig { def main(args: array[string]) = { import javax.script.scriptenginemanager val e = new scriptenginemanager(null).getenginebyname("scala") println(e) } }
and prints null.
when run similar code in scala 2.11.6 console scala engine found successfully.
p.s. there other ways compile dynamically scala code under sbt?
Comments
Post a Comment