Error whlile calling dhtmlxgantt.js using java ,java nashorn

HI All,
Is it possible to call dhtmlxgantt.js directly from java nashron API?
I am doing like this…
ScriptEngine engine = new ScriptEngineManager().getEngineByName(“nashorn”);
engine.eval(new FileReader(“dhtmlxgantt.js”);

I am getting below error "ReferenceError: “window” is not defined "

Is it possible , if yes please let me know how?

Thanks & Regards
Baldeep Singh

Hi,
dhtmlx gantt require browser JS - i.e. it expects DOM to be available and a global object to be called ‘window’.
Thus, dhtmlx gantt can’t run on nashorm or on nodejs