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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -