2

I successfully set up small test app using scala via jsr 223 apis (scala 2.8.1 and sling JSR 223 implementation). However, when checked if ScriptEngine implements javax.script.Compilable, i got that is is not.

final ScriptEngine eng = new ScriptEngineManager().getEngineByName("scala");
System.out.println(eng instanceof Compilable);

Are there any other scala jsr 223 impl that supports script compiling? Thanks.

user124
  • 1,632
  • 1
  • 11
  • 11
  • small note - eng is not null, it is usable to run scripts via .eval method (tested). – user124 Jun 10 '12 at 19:58
  • 1
    Yes, officially starting from Scala 2.11. See http://stackoverflow.com/questions/11209995/jsr-223-scala-script-engine for other answers. – Oswaldo Jun 02 '13 at 14:44

0 Answers0