I asked about jRuby executing javascript with Nashorn a while
ago. It was simple and here is the code should anyone else 
need to do it. 

        factory = javax.script.ScriptEngineManager.new
        engine = factory.getEngineByName 'nashorn'
        bindings = engine.createBindings

        engine.eval javascript_code, bindings

Yes it is easy but sometimes its good to see and cut-n-paste.

- James.
                                          

Reply via email to