I've written some scripts in Javascript under Rhino 1.7, one of them starts a minimal http server and accepts JS commands in input.
Now, if I call (from within Rhino):
engine = ScriptEngineManager().getEngineByName("JavaScript");
I get the builtin JS engine (from Java 1.6), that is an older version of Rhino, and lacks some functions (like JavaAdapter for multiple interfaces).
How do I get the Rhino Engine instead of that? Do I need ScriptEngineManager.getEngineFactories() or what else?