Just tried nashorn.eval("load('${File(it).canonica...
# javascript
a
Just tried nashorn.eval("load('${File(it).canonicalPath}')”)` and it works.