I used your method, but it stills failed calling a static method of a 3rd party class (com.alibaba.fastjson.JSONObject): Nashorn (JS) code: var jso = Java.type('com.alibaba.fastjson.JSONObject').parseObject(json);
Error Message: Exception in thread "main" javax.script.ScriptException: TypeError: Java.type("com.alibaba.fastjson.JSONObject").parseObject is not a function in <eval> at line number 1 How to overcome this kind of problem? -- Sent from: http://nashorn.36665.n7.nabble.com/