title: RhinoScriptEngineFactory not found
body: <p>I cannot run "hello world" rhino programs with the Oracle JVM's JDK7U10 or JDK6U32, using a main class and ant 1.8.4. I am getting this error: </p>
  
  <pre><code>ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider com.sun.script.javascript.RhinoScriptEngineFactory not found
  ...
  [java] Caused by: java.lang.NullPointerException
  [java]     at com.Test.main(Test.java:14)
  </code></pre>
  
  <p>My code is copied from the docs, the error occurs on engine.eval: </p>
  
  <pre><code>package com;
  
  import javax.script.*;
  
  public class Test {
  
      public static void main(String[] args) throws Exception {
  
          // create a script engine manager
          ScriptEngineManager factory = new ScriptEngineManager();
          // create a JavaScript engine
          ScriptEngine engine = factory.getEngineByName("JavaScript");
          // evaluate JavaScript code from String
          engine.eval("print('Hello, World')");
  
      }
  }
  </code></pre>
  
  <p>I have the rhino supplied js.jar in my lib dir as well as an ant required package I might need, bsf.jar. Please help.    </p>