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.

2
  • small note - eng is not null, it is usable to run scripts via .eval method (tested). Commented Jun 10, 2012 at 19:58
  • 1
    Yes, officially starting from Scala 2.11. See stackoverflow.com/questions/11209995/… for other answers. Commented Jun 2, 2013 at 14:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.