How can I import a static method from Java class into JS running in Rhino?
I'm using Oracle implementation (e.g. no access to org.mozilla classes), which as far as I'm aware only has access to JSR-223 API (I'm willing to be proven wrong on this assumption :)
As such, the solutions from this answer don't seem to work: How do I call a method of a Java instance from JavaScript?