title: Rhino: How to call JS function from Java
body: <p>I'm using Mozilla Rhino 1.7r2 (not the JDK version), and I want to call a JS function from Java.</p>
  
  <p>My JS function is like this:</p>
  
  <pre><code>function abc(x,y)
  {
    return x+y
  }
  </code></pre>
  
  <p>How do I do this?</p>
  
  <p>Edit: (The JS function is in a separate file) </p>