I have found way to get it works on OpenJDK 11 (and possibly on other JDK).
First, get the rhino-jdk8.zip from https://github.com/zeroboo/java-scripting-rhino-jdk8/releases/tag/v1.0.0 . It contains js.jar and js-engine.jar. Ignore the js.jar as it is readily available in maven central.
Install the js-engine.jar into local maven repository (.m2 folder). Give some sensible name for it, e.g org.mozilla:rhino-js-engine:1.0
Then add the following maven dependencies to our application ;
<!-- this coming from maven central -->
<!-- this coming from local repository -->