I've just upgraded to java 8. Previously I was using the nashorn script engine and the following would work:
engine.eval("format('%04d-%02d-%02d', 1966, 07, 18);");
Now I get:
<eval>:1 ReferenceError: "format" is not defined
I've googled around for over a day now, but I just can't find an example of this. Is this still supported?
Very grateful for any help.