我有个问题。我正在尝试在我的 GWT 应用程序中使用 JavaScript eval 函数,我创建了正在创建管理器的类
ScriptEngineManager mgr = new ScriptEngineManager();
ScriptEngine engine = mgr.getEngineByName("JavaScript");
像这样使用 eval
engine.eval(calculate);
每当我尝试与该经理一起使用方法时,我都会遇到错误:
No source code is available for type javax.script.ScriptException; did you forget to inherit a required module?
No source code is available for type javax.script.ScriptEngineManager; did you forget to inherit a required module?
No source code is available for type javax.script.ScriptEngine; did you forget to inherit a required module?
知道如何解决吗?