var StringCls = Java.use("java.lang.String"); var stringVal = StringCls.$new(byteArr,"utf-8"); console.log("param:", stringVal);