ScriptEngine provide a method to evaluate some script with any ScriptContext you want but look like luaj expect to get some internal ScriptContext implementation.
java.lang.ClassCastException: javax.script.SimpleScriptContext cannot be cast to org.luaj.vm2.script.LuajContext
at org.luaj.vm2.script.LuaScriptEngine$LuajCompiledScript.eval(Unknown Source)
at org.luaj.vm2.script.LuaScriptEngine.eval(Unknown Source)
at org.luaj.vm2.script.LuaScriptEngine.eval(Unknown Source)
...
Last edit: Thomas Mortagne 2015-12-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Forgot to paste the stack trace:
Last edit: Thomas Mortagne 2015-12-14